Django-elasticsearch-dsl-drf how to made search in hashtag #?

  elasticsearch-dsl-py, python

Help me please!
How can i do same think like this in Django-elasticsearch-dsl-drf to make search using hashtag like #world?
I find out only one more suitable result.
In documentation Django-elasticsearch-dsl-drf i find nothing. . .

"settings" : {
      "analysis" : {
        "filter" : {
            "hashtag_as_alphanum" : {
                "type" : "word_delimiter",
                "type_table": ["# => ALPHANUM", "@ => ALPHANUM"]
            }
        },
        "analyzer" : {
            "hashtag" : {
                "type" : "custom",
                "tokenizer" : "whitespace",
                "filter" : ["lowercase", "hashtag_as_alphanum"]
            }
        }
    }
}}' 

Source: Python Questions

LEAVE A COMMENT