How to converting Lucene Query Parser Syntax to ElasticSearch Query DSL


(yin weifeng) #1

I want to use the Lucene Query Parser Syntax to search in the ElasticSearch
, how can I do


(Ivan Brusic) #2

You can use the query string query:

http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query.html

Hope this helps,

Ivan

On Wed, Feb 15, 2012 at 11:01 PM, 殷伟峰 ywf1990@gmail.com wrote:

I want to use the Lucene Query Parser Syntax to search in the ElasticSearch
, how can I do


(David Pilato) #3

I think you can use QueryString

http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query.html

HTH
David :wink:
@dadoonet

Le 16 févr. 2012 à 08:01, 殷伟峰 ywf1990@gmail.com a écrit :

I want to use the Lucene Query Parser Syntax to search in the ElasticSearch , how can I do


(yin weifeng) #4

Thanks for the point and links, those're very helpful.

and how to converting ElasticSearch Query DSL to Lucene Query Parser Syntax in java api?

like this:
QueryBuilders.fieldQuery("field", "value") => field:"value"


(Shay Banon) #5

The field and query_string queries value that you pass are parsed based on the Lucene query parser syntax.

On Wednesday, February 22, 2012 at 8:33 AM, yin weifeng wrote:

Thanks for the point and links, those're very helpful.

and how to converting ElasticSearch Query DSL to Lucene Query Parser Syntax
in java api?

like this:
QueryBuilders.fieldQuery("field", "value") => field:"value"

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/How-to-converting-Lucene-Query-Parser-Syntax-to-ElasticSearch-Query-DSL-tp3749361p3765707.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com (http://Nabble.com).


(system) #6