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
Post a Comment