nest - Is character @ special in Elasticsearch? -


we searching elasticsearch .net core 2 project using nest library, query:

var response = await client.searchasync<document>(         s => s.query(q =>                 q.querystring(qs => qs                     .defaultfield(f => f.info)                     .query(term)                     .defaultoperator(operator.and)                 ))); 

if elasticsearch contains document info myemail@gmail.com , term=myemail or term=gmail, document found.

problem when searching term=myemail@gmail, since document not found in case. why character @ making problem? should somehow escaped?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -