Hi, I am currently using the Java API for ES with MongoDB. I use fieldQuery
for my main search functionality, where I look for a substring within a
particular field. However, I have one particular document whose value of
"To To " does not return successfully when I search for it. I had verified
that it did exist in the index by searching for it via it's ID. Is this
because "To" is a keyword? Here is the code I am using:
Hi, I am currently using the Java API for ES with MongoDB. I use fieldQuery
for my main search functionality, where I look for a substring within a
particular field. However, I have one particular document whose value of "To
To " does not return successfully when I search for it. I had verified that it
did exist in the index by searching for it via it's ID. Is this because "To"
is a keyword? Here is the code I am using:
I see! Thanks for the help! If that's the case, how do I change the
analyzer to include the default stop words?
On Monday, January 21, 2013 6:30:21 PM UTC+8, David Pilato wrote:
You are using the default analyzer which remove english stop words, such
as "a", "to"...
That's the reason.
Le 21 janvier 2013 à 10:50, Wei Hao Tan <tanwe...@gmail.com <javascript:>>
a écrit :
Hi, I am currently using the Java API for ES with MongoDB. I use
fieldQuery for my main search functionality, where I look for a substring
within a particular field. However, I have one particular document whose
value of "To To " does not return successfully when I search for it. I had
verified that it did exist in the index by searching for it via it's ID. Is
this because "To" is a keyword? Here is the code I am using:
Hi, I am currently using the Java API for ES with MongoDB. I use
fieldQuery for my main search functionality, where I look for a substring
within a particular field. However, I have one particular document whose
value of "To To " does not return successfully when I search for it. I had
verified that it did exist in the index by searching for it via it's ID. Is
this because "To" is a keyword? Here is the code I am using:
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.