Which Query to use

(Ram) #1

Hi All,

I'm new to elastic. I've an application developed in lucene but need to convert it to elastic. I've a lucene query like "field1: sometext^8 | field2: sometetermxt^2 | field3: sometext".

I tried elastic term query, querystring, fuzzy etc but not sure which one should I use in elastic. If i use any one of querystring and fuzzy, it works well if I search single term, but search returns no results if I use multiple terms.

Can anyone suggest which query I should get?


(Jason Wee) #2

maybe this one ? https://www.elastic.co/guide/en/elasticsearch/guide/current/_boosting_query_clauses.html

what does it mean | in lucene , OR?

(system) #3