lucene - Solr roll up query -


I have a specific question with SOLR that I can not find any solution for this, I have an index full of products And the scooo is one product, there are several scores and each spawn has 1 product. I want to search based on the original product of only one group of my SKU and return the details of the original product (but not the item details). But, I want the aspect to show the original list of items. Is it possible with SOLR today? And who is this version available on? I think it is possible, my suggestion is to design your original so that the document is only a SKU, Or represents an item. So, your unique ID will be SKU ID, then you need a product ID which is not unique and can have similar values ​​for those SKUs who have the same basic product.

You can also generalize the product details in all the documents as well. Therefore, when you return the details of the item, then you also have a description of the yield.

The trick here is on the query, using clinging, or there is a field drop in the solar. See more details here:

But as a start, I recommend setting these values ​​in the query:

  1. set group = true (This will be enabled
  2. set group.field = productId (for group, or collapse items by productId)
  3. set group Facet = false (to include the details of all items in aspect numbers)

Therefore, it enables you to search in all the items, classified by product ID Results, and aspect numbers will not apply to everyone. It is not a new feature, if you have a solar 3.3, or 4.x, then you should be able to use closing.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -