Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update reference to images in index #13

Open
mpgirro opened this issue Dec 5, 2018 · 2 comments
Open

Update reference to images in index #13

mpgirro opened this issue Dec 5, 2018 · 2 comments
Assignees
Labels
engine This issue concerns the engine library codebase

Comments

@mpgirro
Copy link
Owner

mpgirro commented Dec 5, 2018

Now that we store images in the backend, we need to update the image fields in the IndexDoc entries. Now they hold the URLs to the images, but they should have the ID of the image in the backend instead

@mpgirro mpgirro added the engine This issue concerns the engine library codebase label Dec 5, 2018
@mpgirro mpgirro self-assigned this Dec 5, 2018
@mpgirro
Copy link
Owner Author

mpgirro commented Jan 1, 2019

The question is how to do this? We must first search for the respective IndexDocs, and then update the these documents. In a reverse index, this is not as trivial as it would in a database.

@mpgirro
Copy link
Owner Author

mpgirro commented Jan 1, 2019

Seems like no complex logic is needed. Solr supports respective operations, see https://lucene.apache.org/solr/guide/7_5/updating-parts-of-documents.html

Guess we'll merely need an Atomic Update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine This issue concerns the engine library codebase
Projects
None yet
Development

No branches or pull requests

1 participant