Hi everybody good afternoon, Please help me to come out of this problem. I
spent so much time to resolve this issue but I am not able to succeed.
I have two users in my db collection and those names are
'john' and 'john-son' , now I am trying to select all records which are
matching with my search text among all fields of db collection. For example
my search text is ' john' then my query is by using elasticsearch java api
It's working fine. But when I am trying to search with special
character text like 'john-son' by this time it it returns zero records.
Can anybody please help me why it's happens and please provide the query
for select text with special characters also. I am really thankful to
them.
Hi everybody good afternoon, Please help me to come out of this problem. I
spent so much time to resolve this issue but I am not able to succeed.
I have two users in my db collection and those names are
'john' and 'john-son' , now I am trying to select all records which are
matching with my search text among all fields of db collection. For example
my search text is ' john' then my query is by using elasticsearch java api
It's working fine. But when I am trying to search with special
character text like 'john-son' by this time it it returns zero records.
Can anybody please help me why it's happens and please provide the query
for select text with special characters also. I am really thankful to
them.
Hi Sir thanks for instant response, yes there is no necessity of "*" + q
"*" just " q " is enough. Present I am using standard-analyzer. Can you
please help to come out of this problem.But it's(john-son) working
properly on particular field search but not working "_all " field search.
On Friday, January 24, 2014 7:16:28 PM UTC+5:30, Itamar Syn-Hershko wrote:
This is because "john-son" is most likely being broken down to two terms,
"john" and "son". What analyzer is being defined on your field?
Also note the "" + q + "" thing isn't necessary, this isn't SQL here
On Fri, Jan 24, 2014 at 3:04 PM, <purn...@gmail.com <javascript:>> wrote:
Hi everybody good afternoon, Please help me to come out of this problem.
I spent so much time to resolve this issue but I am not able to succeed.
I have two users in my db collection and those names are
'john' and 'john-son' , now I am trying to select all records which are
matching with my search text among all fields of db collection. For example
my search text is ' john' then my query is by using elasticsearch java api
It's working fine. But when I am trying to search with special
character text like 'john-son' by this time it it returns zero records.
Can anybody please help me why it's happens and please provide the query
for select text with special characters also. I am really thankful to
them.
Hi Sir thanks for instant response, yes there is no necessity of "*" + q
"*" just " q " is enough. Present I am using standard-analyzer. Can you
please help to come out of this problem.But it's(john-son) working
properly on particular field search but not working "_all " field search.
On Friday, January 24, 2014 7:16:28 PM UTC+5:30, Itamar Syn-Hershko wrote:
This is because "john-son" is most likely being broken down to two terms,
"john" and "son". What analyzer is being defined on your field?
Also note the "" + q + "" thing isn't necessary, this isn't SQL here
On Fri, Jan 24, 2014 at 3:04 PM, <purn...@gmail.com <javascript:>> wrote:
Hi everybody good afternoon, Please help me to come out of this problem.
I spent so much time to resolve this issue but I am not able to succeed.
I have two users in my db collection and those names are
'john' and 'john-son' , now I am trying to select all records which are
matching with my search text among all fields of db collection. For example
my search text is ' john' then my query is by using elasticsearch java api
It's working fine. But when I am trying to search with special
character text like 'john-son' by this time it it returns zero records.
Can anybody please help me why it's happens and please provide the query
for select text with special characters also. I am really thankful to
them.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.