Comments (13)
today
from vendure.
Noting this here for later investigation: perhaps this is related to a recent change in the indexing logic, which in turn is being patched by the following PR
from vendure.
That indicates some potential issue in configuration perhaps. Is this the DefaultSearchPlugin? Index updates are well covered in our e2e test suite, so I'd be surprised if this is a bug in the plugin itself.
Can you share your config for the search plugin? And if you are able to create a minimal reproduction from a clean installation, that would help a lot.
from vendure.
@michaelbromley I have the same issue. The key "productVariantAsset" is always null. Clearing the search_index_item table and reindexing products does not help. It turned out to reproduce the problem in a newly created project with pre-installed data in SQLite.
My config for the search plugin:
DefaultSearchPlugin.init({ bufferUpdates: false, indexStockStatus: true }),
from vendure.
This was fixed by the PR mentioned above. Will be available in the next patch release.
from vendure.
As a temporary fix, we were able to manually set the productVariantPreview
and productVariantAssetId
on search_index_item
in the database. Obviously, we don't want to do this every time ;)
I tried looking into the cause of this issue, but couldn't fully understand the indexing code in Vendure 😅
from vendure.
Is the worker running and updating the search index on changes to the entities?
from vendure.
Yeah, looks like it ran successfully:
![image](https://private-user-images.githubusercontent.com/53900565/340547359-380ebc78-c79a-4f28-b058-280b73a9e088.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0NzUwNDMsIm5iZiI6MTcyNTQ3NDc0MywicGF0aCI6Ii81MzkwMDU2NS8zNDA1NDczNTktMzgwZWJjNzgtYzc5YS00ZjI4LWIwNTgtMjgwYjczYTllMDg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDE4MzIyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk1NTJjODg5ODM0YTU3YzFhM2I5NDkxOTgyNDMwNjRlMTcwN2VkMTg3ZTkyYmMyNTEyMmU5MzI4MTU3NzY0ZjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dKvYkWci3qCbsve9igC-XKybO06O1YY0oLEwI6Qftdo)
However, it did not update the search index when running the search query
from vendure.
OK, and if you update other properties of the product/variant, such as slug, name, etc, are these successfully reflected in the search result after the worker job completes?
from vendure.
Nope, doesn't look like it:
from vendure.
This is the config we're using:
// ...
DefaultSearchPlugin.init({ bufferUpdates: false, indexStockStatus: true }),
// ...
It's a weird one, since I remember this working at least a version or 2 ago
from vendure.
Awesome, thank you!!
from vendure.
I am facing the same issue. When can we expect this patch release, please?
from vendure.
Related Issues (20)
- Money cannot represent non numberic value NaN and discount for order line with 0 quantity HOT 5
- ActiveCustomer Query can not query the user roles. HOT 2
- Rebuilding search index error when working with multiple channels HOT 5
- Allow developer to inject scripts into Admin UI's index.html (E.g in case an API needs it to work). HOT 1
- Separate tsconfig-file to allow ui-folders in the dev compilation (npx vendure create -template).
- Add a function to manually send or resend (EmailEventHandler trigger) email to the UI for Order and Customer HOT 6
- Assign To Channel button disappear when more than 5 channels assigned on Admin HOT 2
- Expose admin-ui for custom fields on ProductVariantPrice. HOT 4
- [StripePlugin] Order stuck in ArrangingPayment because shipping charges are not included in payment HOT 2
- Support asset streaming HOT 2
- ctx.req.app.get is not available in JobQueue after ctx.serialize() and ctx.deserialize() HOT 6
- Add the ability to add result data to an already-running job HOT 1
- Add i18n in EmailPlugin template with translation helper function to be able to use same templates but with different languages.
- DB performance problem with version 3.0.1 HOT 6
- AssetServerOptions.assetUploadDir is required even when not using LocalAssetStorageStrategy
- Perf: Order detail query very slow on Postgres v16 HOT 1
- createQueue doesn't immediately fully initialize it HOT 2
- Decouple Admin UI and API HOT 2
- The way that assets are resized and cropped enables any user to potentially overflow the server
- Incorrect promotion usage count for split orders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vendure.