elasticsearch - How to search for # in Azure Search -


hi have string field has ngram analyzer.

and our query goes this.

$count=true&querytype=full&searchfields=name&searchmode=any&$skip=0&$top=50&search=/(.*)site#12(.*)/ 

the test searching has site#123

the above query work other alpha numeric charecters except #. idea how make work.

your string being tokenized spaces , punctuation #. if want search # , other punctuation characters, consider tokenzing whitespace. or perhaps not apply tokenization @ , treat whole string single token.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -