Applying filters to the phrase suggester's scoring

Elasticsearch,

Does anyone know of a way to make the scores from the phrase suggester
respect the filtering in the query? It is pretty lame that I suggest
phrases that produce no results because they've been filtered out.

Nik

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

currently there is no such thing as filtering. Yet we don't really apply
filters when building these suggestions for the most parts this would be a
serious performance bottleneck. The best solution is to keep separate
suggest fields for each different "filter" if this is possible. I don't
think we can support arbitrary filters the way the suggester works today. I
might be able to add a feature that runs a certain filter as a post step to
make sure that we rather return nothing than a suggestion that is not
returning results. Would that help you?

simon

On Friday, August 2, 2013 4:40:00 PM UTC+2, Nikolas Everett wrote:

Elasticsearch,

Does anyone know of a way to make the scores from the phrase suggester
respect the filtering in the query? It is pretty lame that I suggest
phrases that produce no results because they've been filtered out.

Nik

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

I was planning on partitioning my data for search speed reasons anyway but
had shied away from it as a premature optimization. That single partition
would solve 80% of my problems with that lack of a filter. I can certainly
see why a filter would cause a huge performance hit.

Before I look at a post step filter I'll see what I get out of partitioning
my documents.

Nik

On Fri, Aug 2, 2013 at 4:07 PM, simonw simon.willnauer@elasticsearch.comwrote:

currently there is no such thing as filtering. Yet we don't really apply
filters when building these suggestions for the most parts this would be a
serious performance bottleneck. The best solution is to keep separate
suggest fields for each different "filter" if this is possible. I don't
think we can support arbitrary filters the way the suggester works today. I
might be able to add a feature that runs a certain filter as a post step to
make sure that we rather return nothing than a suggestion that is not
returning results. Would that help you?

simon

On Friday, August 2, 2013 4:40:00 PM UTC+2, Nikolas Everett wrote:

Elasticsearch,

Does anyone know of a way to make the scores from the phrase suggester
respect the filtering in the query? It is pretty lame that I suggest
phrases that produce no results because they've been filtered out.

Nik

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

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