Hi,
I'm looking to create a search behaviour like Amazon does.
I have an index with 3 Fields : Title, Description and Category.
I want to search in the fields title and descriptions for the word "car"
and I would like to get scored result like this :
car --> score : 1 in category vehicles
autocar --> score : 0,5 in category vehicles where the part "car" should
highlighted ex : autocar
carradio --> core : 0,5 in category vehicles where the part "car" should
highlighted ex : carradio
and that if the word is found in the title field, the score should be
higher as if the word would only be found in the description field.
Is anybody out there who could help me on this topic or at least point me
to the right direction where I should look for ?
On Friday, 16 January 2015 08:19:08 UTC+11, Serge Schumacher wrote:
Hi,
I'm looking to create a search behaviour like Amazon does.
I have an index with 3 Fields : Title, Description and Category.
I want to search in the fields title and descriptions for the word "car"
and I would like to get scored result like this :
car --> score : 1 in category vehicles
autocar --> score : 0,5 in category vehicles where the part "car"
should highlighted ex : autocar
carradio --> core : 0,5 in category vehicles where the part "car" should
highlighted ex : carradio
and that if the word is found in the title field, the score should be
higher as if the word would only be found in the description field.
Is anybody out there who could help me on this topic or at least point me
to the right direction where I should look for ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.