elasticsearch


Elasticsearch search body from URL search


If I do a search directly to elasticsearch in a browser, such as:
http://localhost:9200/mydocs/_search?q=Awesome%20Search
What does the search body data actually look like? Is it doing a multi_match and including all fields? I've tried writing a multi_match including all the fields and I get different results from doing it right in the browser.
?q=.... is not a multi_match query, this is URI query and it's using query_string query.
So your search is "translated" to:
{
"query": {
"query_string": {
"query": "Awesome Search"
}
}
}
You need to pass multi_match query as request body like this
curl -XGET 'http://localhost:9200/your_index/_search?pretty=true' -d '{"query":{"multi_match":{"query":"keyword","fields":["field1","field2"]}}}'

Related Links

How to import CSV data using Logstash for field type completion in Elasticsearch suggester
How can I interpret the result of percentiles aggregation type
elastic search select fields to return in aggregation
How to Focus Search On One Part of a Document
How to calculate cooccurrences on a set of texts with Elasticsearch
elasticsearch edge_ngrams analyzer is not found
Double wildcard in query causes weird highlighting for plain/fast vectors elasticsearch highlighters
Get Elasticsearch response in DataTable in C#.Net
Elasticsearch NoNodeAvailableException issue
Why Elasticsearch snapshot stats number_of_files differs from actual indices count?
Specifying data type and analyzer while creating index
elasticsearch regroups aggs by regex
get unique values from elasticsearch
Elasticsearch dies on primary node at random times. What should I look for in troubleshooting?
elasticsearch problems with queries
Normalize elasticsearch query/results

Categories

HOME
xpath
events
android-espresso
applescript
scroll
swi-prolog
antd
compilation
tcsh
code-formatting
filesize
flurry
repair
firebase-dynamic-links
pyresttest
cocotb
selection
azure-logic-apps
siesta
driver
xades4j
match
nexus3
colors
erd
business-intelligence
bundler
cuba-platform
supervisord
pywinauto
rest-assured
vertica
gravity
data-type-conversion
dashdb
bsd
bosun
altium-designer
conda
rxjs5
device
pubxml
tortoisemerge
history.js
amazon-cloudtrail
envoy
vcenter
python-2.x
quick-nimble
caesar-cipher
custom-keyboard
busboy
subclassing
bluemixtools
installanywhere
ms-dos
strapi
stat
dbcc
latexml
kitura
destroy
winston
http-basic-authentication
emacs25
rcharts
dymola
email-injection
nitrousio
xcode6.4
ndk-build
dmarc
conan
cdo.message
qpixmap
gnucash
facebook-ios-sdk
currency-exchange-rates
management-studio-express
highest
featuretoggle
supersocket.net
ngcordova
artisan
ampersand
scala-macros
text-align
incron
thoughtworks-go
flurry-analytics
utf8-decode
angular-ui-select
boolean-algebra
principalcontext
armv6
ggts
insertonsubmit
jquery-lazyload
oembed
multiscaleimage
websphere-6.1
struts2-s2hibernate
mmc3
getopts
rtd
photo-management
nsconnection
libxslt
gaelyk
bass
j2mepolish
cleartype
eventaggregator
xap
ntruencrypt
iphone-sdk-3.1.3
remote-working
html-generation
service-factory

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile