Different Results from two different clients


(Omerbn) #1

Hey,

Architecture:
2 client python machines running the same code with same libraries/packages.
1 elasticsearch node (with 5 shards)
1 elasticsearch index

I'm running the following query:
{
"query": {
"multi_match": {
"fields": ["field1", "field2"],
"boost": 1,
"query": "test t",
"fuzziness": 1,
"type": "best_fields"
}
}
}

From client#1 - I get 2 results
From client#2 - I get 0 results

Why could this be?

Thank you :slight_smile:


(Val Crettaz) #2

Can you also show the Python code you're running?


(Omerbn) #3

Sure.

elasticsearch = Elasticsearch(hosts="myhost:9200")
term = {
"query": {
"multi_match": {
"fields": ["field1", "field2"],
"boost": 1,
"query": "test t",
"fuzziness": 1,
"type": "best_fields"
}
}
}

results = elasticsearch.search(index="my-index", body=term)


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.