Sure, here it is: -------------------------
We are migrating our Lucene based search codebase to Elasticsearch. The major problem we encountered is how we should migrate our QueryParsers. In our old solution, the QueryParsers take in a human input query string, and transform that to Lucene's Query object, which is then fed into Lucene's IndexSearcher. However, in Elasticsearch we don't directly interact with IndexSearcher, instead we can only build the queries in the client side using Query DSL <http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl.html> and send the JSON to Elasticsearch server. Elasticsearch server then (possibly) rewrites/analyses the JSON query to build a Lucene query. To make use of our existing and sophisticated logic in QueryParsers, we decided that we can stick to our old approach by: 1. Explicitly tell Elasticsearch to *NOT analyze* any query in the search time. 2. Do *ALL* the query related analysis (tokenizing, synonym, etc) in the Java client. 3. Believe that Elasticsearch's Query DSL is kind of a one-to-one mapping to Lucene's Query The questions are: 1. Is this approach feasible? 2. What are the potential problems in doing so? 3. What is the best practice? By the way, don't worry about the scoring process, we are writing our scorer scripts as a Elasticsearch plugin. ------- Thank you! Odin On Friday, June 6, 2014 3:36:54 PM UTC+8, Jörg Prante wrote: > > Please ask your question here. Thanks. > > Jörg > > > On Fri, Jun 6, 2014 at 9:28 AM, ohw <[email protected] <javascript:>> wrote: > >> Hi folks >> >> I just asked a question in StackOverflow, please have a look if you have >> encountered similar problem or have some input to it. >> >> Thanks in advance! >> >> -- >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/1f4b1575-f050-46db-853f-511bc24e6392%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elasticsearch/1f4b1575-f050-46db-853f-511bc24e6392%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/50690e24-839a-4908-90f4-5417129debc6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
