Hello Dany ,

I didnt really understand what you mean by position.
Kindly clarify.

Thanks
          Vineeth


On Tue, Jul 1, 2014 at 5:18 PM, Dany Gielow <dany.gie...@gmail.com> wrote:

> Hello,
>
> I want to match only documents which match all positions.
> My approach would be to index the number of positions and compare it to
> the number of matched positions.
>
> Every position that has multiple tokens (stacked tokens) should count only
> as 1.
>
> Given the following positions in a field:
> *Position 1*: red
> *Position 2*: car, automobile
>
> These queries should be scored as follows:
>
> *"red"*: 1
> *"car"*: 1
> *"automobile"*: 1
> *"red car"*: 2
> *"red automobile"*: 2
> *"car automobile"*: 1
> *"fast red car"*: 2
>
> What approach should I use to get the number of matched positions as a
> score?
> I guess I need a custom similarity for that.
>
> Thanks in advance
> Dany
>
>
>
>  --
> 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/3d90446e-b1d8-4c8d-8566-d10db7e82369%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/3d90446e-b1d8-4c8d-8566-d10db7e82369%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGdPd5mSezCmfXK6TJDa-1GTX%3DWzercrmDb6-vsAXum%2B4C4Cvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to