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.
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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.