Re: How to reordering search result by some function query

2015-09-10 Thread Leonardo Foderaro
Hi Aman, if you want to sort/filter/boost on a custom function query please take a look at the Alba Framework, maybe it can be useful. For example, you can define a new function query (and then sort/filter/boost on it) simply by adding some annotations to your method, as explained in the wiki:

Re: How to reordering search result by some function query

2015-09-10 Thread Upayavira
Aman, If you are using edismax then what you have written is just fine. For Lucene query parser queries, wrap them with the boost query parser: q={!boost b=product_guideline_score v=$qq}=jute Note in your example you don't need product(), just do boost=product_guideline_score Upayavira On

Re: How to reordering search result by some function query

2015-09-10 Thread Aman Tandon
> > boost=product_guideline_score Thank you Upayavira. Leonardo, thanks for the suggestion. But I think boost parameter will work great for us. Thank you so much for your help. With Regards Aman Tandon On Thu, Sep 10, 2015 at 5:11 PM, Upayavira wrote: > Aman, > > If you

Re: How to reordering search result by some function query

2015-09-10 Thread Aman Tandon
Hi, I figured it out to implement the same. I will be doing this by using the boost parameter e.g. http://server:8112/solr/products/select?q=jute=title *=product(1,product_guideline_score)* If there is any other alternative then please suggest. With Regards Aman Tandon On Thu, Sep 10, 2015 at

How to reordering search result by some function query

2015-09-09 Thread Aman Tandon
Hi, I have a requirement to reorder the search results by multiplying the *text relevance score* of a product with the *product_guideline_score,* which will be stored in index and will have some floating point number. e.g. On searching the *jute* in title if we got some results ID1 & ID2 ID1 ->