0

I want to know the proper format or way to search for term in query using elasticsearch in URl method for example

http://localhost:9200/ncar_index/ncar/_search?q=category:الأنظمة&size=100&sort=date:desc&default_operator=AND

1 Answer 1

1

Why don't you put your query in the request body?

GET http://localhost:9200/ncar_index/ncar/_search
{
    "size": 10,
    "sort": [
        {"date": "desc"}
    ],
    "query": {
        "match": {
            "category": {
                "query": "الأنظمة",
                "operator": "and"
            }
        }
    }
}

Reference documents
Match Query doc
Limit result with From/Size
Sorting search result

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.