CompletionSuggest - what if multiple documents have the same output?


(Barak Yaish) #1

Hi,

I've a question regarding the behavior of suggests. In case multiple
documents configured with the same output in the completion field (input
and payload are different so they are indexed as separated docs), would ES
filter out the "duplicates" upon suggest request? Few tests I ran show that
not all the docs are returned, I was wondering whether this is something I
did wrong, or a feature/bug/configuration on ES side.

Thanks.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(AbhijitPratap Singh) #2

This is not an answer,rather an observation. Two cases have been observed
for the completion suggest feature.
First, if the input is same with different payloads and output,the output
obtained for a test input is one of the outputs indexed.
Secondly,if inputs are different with same output, the output obtained for
test input is unique and does not have any duplication.

On Sunday, October 27, 2013 9:20:22 PM UTC+5:30, barak wrote:

Hi,

I've a question regarding the behavior of suggests. In case multiple
documents configured with the same output in the completion field (input
and payload are different so they are indexed as separated docs), would ES
filter out the "duplicates" upon suggest request? Few tests I ran show that
not all the docs are returned, I was wondering whether this is something I
did wrong, or a feature/bug/configuration on ES side.

Thanks.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Barak Yaish) #3

Is there a workaround for this use case, or must I use different outputs?
BTW, isn't the doc id somehow reflected in the FST?

On Sunday, October 27, 2013 10:11:25 PM UTC+2, AbhijitPratap Singh wrote:

This is not an answer,rather an observation. Two cases have been observed
for the completion suggest feature.
First, if the input is same with different payloads and output,the output
obtained for a test input is one of the outputs indexed.
Secondly,if inputs are different with same output, the output obtained for
test input is unique and does not have any duplication.

On Sunday, October 27, 2013 9:20:22 PM UTC+5:30, barak wrote:

Hi,

I've a question regarding the behavior of suggests. In case multiple
documents configured with the same output in the completion field (input
and payload are different so they are indexed as separated docs), would ES
filter out the "duplicates" upon suggest request? Few tests I ran show that
not all the docs are returned, I was wondering whether this is something I
did wrong, or a feature/bug/configuration on ES side.

Thanks.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4