elasticsearch


Function_score query with filters


I need to consider the priority of the company in the search result. The documentation has a similar "Boosting Filtered Subsetsedit" option. In the result, I get this json request and get an error. Perhaps I'm not in the same sequence I put a request for filtering. Tell me in what order it is necessary to write a question considering the filtering.
{
"index":"base",
"type":"info",
"from":0,
"size":10,
"fields":["cID","firm_html"],
"body":
{
"query":
{
"bool":
{
"must_not":[
{
"match":
{
"info.published":"no"
}
}
],
"should":[
{
"query_string":
{
"default_field":
"info.shortname",
"query":"value"
}
},
{
"match":
{
"_all":"value"
}
},
]
},
"function_score":
{
"functions":[
{
"filter":
{
"term":
{
"razm_prio":"0.4"
}
},
"weight":"0.4"
},
],
"score_mode":"sum"
}
}
}
}

Related Links

AND between tokens in elasticsearch
Elasticsearch Stemmer Override Token Filter not working when usind rules path
Logstash extracting values from sp_executesql
Logstash Grok Modifying and overwriting #timestamp
how to restore elasticsearch.yml config file to original?
Index a graph with ElasticSearch
ElasticSearch query not returning expected results
Fluentd High Availability Custom Index
How do I add an attribute to an Elasticsearch node for the purpose of Shard Allocation Filtering?
Configure ElasticSearch attachment mapper to use OCR plugin
ElasticSearch: How to search for a value in any field, across all types, in one or more indices?
Phrase suggestor - which index and query to act upon
Adding additional fields to ElasticSearch terms aggregation
ElasticSearch multi_match if field exists apply filter otherwise dont worry about it?
ElasticSearch Date Histogram Interval
Kibana 4 index patterns time-field

Categories

HOME
xcode
typelite
kendo-dropdown
concurrency
plaid
filesize
openflow
mosquitto
implicit-conversion
ipv6
mutation-testing
log4j2
stimulsoft
sql-injection
google-tasks-api
bazaar
multiple-tables
parceler
firemonkey-style
cube
tsung
sparkle
region
phpstorm-2016.1
lxml
cucumber-junit
kendo-listview
devtools
custom-keyboard
recovery
klee
nuclio
jenkins-slave
rightnow-crm
intellij-lombok-plugin
libreoffice-writer
beeline
nonlinear-functions
android-mediarecorder
pen
rustdoc
portal
deviare
ndk-build
nvda
traversable
nsdata
dpkg
adp
cortana
in-app-billing
opencyc
place
mixins
extend
jnlp
unhandled
flow-js
tree-structure
text-align
mathematical-expressions
findersync
lifetime
dnsjava
adwords-apiv201402
miglayout
hotswap
rautomation
form-for
indesign-server
.net-remoting
proc-open
django-filebrowser
user-forums
stretch
kobold2d
series-40
delphi-prism
radscheduler
net-use
gaelyk
ios-4.2
ixmldomdocument
raw-data
bucket

Resources

Encrypt Message