Searching records


(Manikandan) #1

I have searching data from index. I am not getting exact data. I am also getting related data too. How can i restrict that.

Here is my code

"fields": ["xxx"],
    "query": {
        "bool": {
            "should": [
                {
                    "match": {
                       "xxx":"yyy"
                    }
                }
            ]
        }
    }

(David Pilato) #2

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.


(system) closed #3

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