In my current project, the modle seller has multiply products with price, I want to index products and query them then sorting them by price , seller's credit ,the distance between the seller and the user while highlighting the matched products.
Due to solr flatten one-to-many relationship, so I should use multiVlaude field to store products and their prices for a seller.
The schema likes
but this option can not sort docs by product's price and highlighting not work. Meanwhile the product's fileds will not returned.
--------------------------------------
How about using nested document model?
but. I found this
All children of a parent document must be indexed together with the parent document. One cannot update any document (parent or child) individually. The entire block needs to be re-indexed of any changes need to be made.
Due to seller updating his products frequently, this option cann't meet our situation.