What are the differences between fieldquery vs termquery in elasticsearch? -



What are the differences between fieldquery vs termquery in elasticsearch? -

what differences , similarities between fieldquery , termquery

filterbuilders.queryfilter(querybuilders.fieldquery("truckname", "joshi")); filterbuilders.queryfilter(querybuilders.termquery("truckname", "joshi"));

both returning same results. please give examples

a term query looking exact match of terms field without doing analysis of parameter.

it looks fieldquery (from http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html) simple form of query_string on specific field, doing analysis.

the 2 deed same single word "truckname", termquery faster.

elasticsearch

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -