Re: Complex search

2015-01-15 Thread Russ Cam
Take a look at highlighting 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html
 for 
highlighting the relevant parts of matches and at multifield 
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/multi-match-query.html#_boosting_individual_fieldssearch
 
queries with boosting on individual fields.

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 : auto*car*
 carradio -- core : 0,5 in category vehicles where the part car should 
 highlightedex : *car*radio

 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 ?

 Thanks,
 Serge


-- 
You received this message because you are subscribed to the Google Groups 
elasticsearch group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c1b4e9e2-f84b-4b72-bdda-0b22a8584658%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Complex search

2015-01-15 Thread Serge Schumacher
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 : auto*car*
carradio -- core : 0,5 in category vehicles where the part car should 
highlightedex : *car*radio

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 ?

Thanks,
Serge

-- 
You received this message because you are subscribed to the Google Groups 
elasticsearch group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/3f5e7d15-74c2-49ab-bc8f-231d01899fa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.