Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
suggest api enhancement #3199
I want to build a custom suggester and plug it into the existing suggest API.
I need to access:
Current API expose parameters only needed by built-in phrase and term suggester :-(
At this point we already have an extension mechanism for this in place added in #3089 You have access to the searcher or rather to the index reader which is what you want at the end of the day. I am happy to expose the shard and the index as well, can you explain the usecase a bit more?
Current Suggester.java execute API as fallows:
public Suggestion<? extends Entry<? extends Option>> execute(String name, T suggestion, IndexReader indexReader, CharsRef spare) throws IOException;
For example, at this point, I need searcher rather than reader.
My customer wanted me to build a suggester that supports:
As far as I understand, current phrase suggester does not support AND search.
Also, my customer wants to see more words other than what user typed and simple corrections. ,
I can create totaly a new rest endpoint for my suggester but it would be awesome to plug it into the existing ES architecture.