Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post filter phrase suggestions #4072

Closed
wants to merge 1 commit into from

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Nov 4, 2013

This implementation has a bunch of problems that'll need to be worked
before it is a valid candidate for merging. I don't have time to rebase
it right now but would still love the feedback on problem. The ones I
remember:

  1. It performs the filtering by blocking the suggesting thread.
  2. Because there is no "exists" query type it uses a limit. I now know
    that isn't ass efficient as just using a count but it might be worth
    implementing an exists query type for it any way.
  3. It feels like there are a lot of plumbing changes required for this
    feature. My guess is that is because I'm going about it wrong. This
    correlates with Query DSL: Terms Filter #1 pretty well.
  4. I have to wrap the filter through the map nodes and parse it during
    the reduce step. That feels silly.

Closes #3482

This implementation has a bunch of problems that'll need to be worked
before it is a valid candidate for merging.  I don't have time to rebase
it right now but would still love the feedback on problem.  The ones I
remember:

1.  It performs the filtering by blocking the suggesting thread.
2.  Because there is no "exists" query type it uses a limit.  I now know
that isn't ass efficient as just using a count but it might be worth
implementing an exists query type for it any way.
3.  It feels like there are a lot of plumbing changes required for this
feature.  My guess is that is because I'm going about it wrong.  This
correlates with #1 pretty well.
4.  I have to wrap the filter through the map nodes and parse it during
the reduce step.  That feels silly.

Closes elastic#3482
@nik9000 nik9000 closed this Mar 5, 2014
@brupm
Copy link

brupm commented Jun 20, 2014

Hi nik9000, did you ever sold this problem?

@nik9000
Copy link
Member Author

nik9000 commented Jun 20, 2014

I mostly solved it by splitting my index in half and only query which half I need to at query time. So suggestions are only made on the half that you query. You can still get suggestions for missing results but its much much much less likely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggester: Phrase suggest option to limit suggestions to exising phrases
2 participants