lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com.INVALID>
Subject Re: Solr Boost Search word before Specific Content
Date Wed, 08 Jul 2015 07:09:19 GMT
Hi Jack,

Here is hypothetical example:

product_title_1 : dell laptop with laptop bag

product_title_2 : laptop bag with cover
product_title_3 : laptop bag and table

You create an artificial/additional field, 

before_field_1 : dell laptop
before_field_2 : laptop bag
before_field_3 : laptop bag

You can implement/embed any complex/custom logic (to indexing code) for obtaining values of
this new boostable before_field.
You can even implement it in a custom update processor.

Then, at search time, use (e)Dismax's field boosting mechanism q=Laptop bag&qf=product_title^0.3
before_field^0.7&defType=edismax

Ahmet



On Wednesday, July 8, 2015 6:56 AM, JACK <mfalakh@gmail.com> wrote:
Hi Ahmet,

Can you elaborate it more?
Is it possible to solve my problem in Solr 5.0.0?
if yes can just explain how?



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Boost-Search-word-before-Specific-Content-tp4216072p4216257.html

Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message