Hi Alexandre,

did you have a look at the cross_fields type of the multi match query?

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#type-cross-fields

Using an edge_ngram analyzer this might already solve your problem even without the need for fine-tuning a boost value.

Best regards,
Hannes


On 06.05.2014 13:57, Alexandre Pinsard wrote:


Hello everybody,
i would like to use boost in the case :

I have a personal index that contains the following properties:

    - sname
    - fname
    - login

When I do research on fname= 'toto' and sname = 't' I would like my results
are sorted by relevance. For example :

    - Toto tata
    - Toto tutu
    - Toto tttttt
    - Totoaaaa Tutfut
    - etc...

But I do not know how to deal with boost. Can you help me please ?


--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/5368D35C.60109%40hkorte.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to