Applying filters to the completion suggestor


(Amit Soni) #1

Hello everyone - We have a use case where we are trying to implement 'type
ahead' functionality for data that exists for different customers. Hence
the 'type ahead' will be specific to a user based on the data that the
specific user.

What I am trying to understand is how I can apply filters to completion
suggestor so that it returns suggestions only for the filter result?

Thanks much in advance!

-Amit.

--
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.


(Sang Dang) #2

Hi Amit,
As my understand, the completion base on FST which will process your inputs
at index time. so you could do it after you get filter result.
For your purpose, you could use phrase prefix and edgeNGram to implement
this feature.

Regards.

On Wednesday, November 20, 2013 12:52:34 AM UTC-8, amit.soni wrote:

Hello everyone - We have a use case where we are trying to implement 'type
ahead' functionality for data that exists for different customers. Hence
the 'type ahead' will be specific to a user based on the data that the
specific user.

What I am trying to understand is how I can apply filters to completion
suggestor so that it returns suggestions only for the filter result?

Thanks much in advance!

-Amit.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5ad04dd1-60e1-42c1-b7ca-d397e6fb6156%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #3

Hey,

right now there is possibility to filter results for the completion
suggester, because it is not executing a query like a normal search query
(the data structures used are highly different in order to ensure
performance). We are right now in the process of creating something similar
like a filter by allowing to specify a suggester context, but this is still
in the works (not even in master)


--Alex

On Wed, Nov 27, 2013 at 4:55 AM, kidkid zkidkid@gmail.com wrote:

Hi Amit,
As my understand, the completion base on FST which will process your
inputs at index time. so you could do it after you get filter result.
For your purpose, you could use phrase prefix and edgeNGram to implement
this feature.

Regards.

On Wednesday, November 20, 2013 12:52:34 AM UTC-8, amit.soni wrote:

Hello everyone - We have a use case where we are trying to implement
'type ahead' functionality for data that exists for different customers.
Hence the 'type ahead' will be specific to a user based on the data that
the specific user.

What I am trying to understand is how I can apply filters to completion
suggestor so that it returns suggestions only for the filter result?

Thanks much in advance!

-Amit.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5ad04dd1-60e1-42c1-b7ca-d397e6fb6156%40googlegroups.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8CN8aHo84%2BBH3cNdsZZSV0OgLYiH9q6NuHLn3dSx42fA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Amit Soni) #4

Thanks Sang and Alex.

Nice to know this request is in the backlog, will wait for it to be out for
use.

-Amit.

On Wed, Nov 27, 2013 at 3:08 AM, Alexander Reelsen alr@spinscale.de wrote:

Hey,

right now there is possibility to filter results for the completion
suggester, because it is not executing a query like a normal search query
(the data structures used are highly different in order to ensure
performance). We are right now in the process of creating something similar
like a filter by allowing to specify a suggester context, but this is still
in the works (not even in master)

https://github.com/elasticsearch/elasticsearch/issues/3959
https://github.com/elasticsearch/elasticsearch/pull/4044

--Alex

On Wed, Nov 27, 2013 at 4:55 AM, kidkid zkidkid@gmail.com wrote:

Hi Amit,
As my understand, the completion base on FST which will process your
inputs at index time. so you could do it after you get filter result.
For your purpose, you could use phrase prefix and edgeNGram to implement
this feature.

Regards.

On Wednesday, November 20, 2013 12:52:34 AM UTC-8, amit.soni wrote:

Hello everyone - We have a use case where we are trying to implement
'type ahead' functionality for data that exists for different customers.
Hence the 'type ahead' will be specific to a user based on the data that
the specific user.

What I am trying to understand is how I can apply filters to completion
suggestor so that it returns suggestions only for the filter result?

Thanks much in advance!

-Amit.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5ad04dd1-60e1-42c1-b7ca-d397e6fb6156%40googlegroups.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8CN8aHo84%2BBH3cNdsZZSV0OgLYiH9q6NuHLn3dSx42fA%40mail.gmail.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAAOGaQKdnR%3DVA2TLAX4fTn8A_NZ1VJQQb%2BQv14Te8ghkUtSW_w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Andrea Salvadore) #5

Hi
is this feature likely to go into 1.0 release? We'd love to be able to use
the completion filter

On Wednesday, 20 November 2013 08:52:34 UTC, amit.soni wrote:

Hello everyone - We have a use case where we are trying to implement 'type
ahead' functionality for data that exists for different customers. Hence
the 'type ahead' will be specific to a user based on the data that the
specific user.

What I am trying to understand is how I can apply filters to completion
suggestor so that it returns suggestions only for the filter result?

Thanks much in advance!

-Amit.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5816c3f7-7e24-4c38-8f23-3de4a8d8acb8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(rakesh goyal) #6

Is there any plan to release this feature in near future.

On Friday, 31 January 2014 14:47:27 UTC+5:30, Andrea Salvadore wrote:

Hi
is this feature likely to go into 1.0 release? We'd love to be able to use
the completion filter

On Wednesday, 20 November 2013 08:52:34 UTC, amit.soni wrote:

Hello everyone - We have a use case where we are trying to implement
'type ahead' functionality for data that exists for different customers.
Hence the 'type ahead' will be specific to a user based on the data that
the specific user.

What I am trying to understand is how I can apply filters to completion
suggestor so that it returns suggestions only for the filter result?

Thanks much in advance!

-Amit.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1cb5915e-e522-4932-b612-a8b97884eefa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #7