Customize search based on a conditional field.
I am looking more for a advise to understand the best path to go.
I am indexing a document that has a field, price, that is customized by some parameters, region for instance. It is Coveo for Sitecore.
I will need to query documents, and price range is a parameter. As don't have a single value to price, I am not sure how to proceed.
I though, I could customize some how the query processor, that would receive a context and select the value accondingly.
Does anybody has a suggestion?
I really appreciate any comments. tks
I am not sure I understand completely what you are trying to accomplish, but it is possible to query a numerical field using a range request.
For example, you could do a query with something like @price==1000..2000 , which would return all documents for which the price is between 1000 and 2000.
Is this what you are trying to accomplish ?