[Fixed]-Unable to search '#' in elasticsearch

1👍

Try this:

curl -XPOST "http://localhost:9200/haystack/modelresult/_search" -d'
{
    "query": {
        "match": {
           "post_text": "#test"
        }
    }
}'

or this:

curl -XPOST "http://localhost:9200/haystack/modelresult/_search" -d'
{
    "query": {
        "term": {
           "post_text": "#test"
        }
    }
}'

Leave a comment