We recently ran into an issue where querying for common words (and, or,
not, are, etc) with a text phrase query was necessary. Unfortunately, we
used the default analyzers and presumably removed all of these [english]
stop words. (Stop Token Filter). Is there any way to query for the common
words with the current index, or do we have to reindex our data with the
correct analyzers configured (i.e. simple analyzer).
Hi,
I think you could try with lowercase tokenizer.
On Tuesday, September 18, 2012 3:40:46 AM UTC+7, Yooz wrote:
Hi all,
We recently ran into an issue where querying for common words (and, or,
not, are, etc) with a text phrase query was necessary. Unfortunately, we
used the default analyzers and presumably removed all of these [english]
stop words. (Stop Token Filter). Is there any way to query for the common
words with the current index, or do we have to reindex our data with the
correct analyzers configured (i.e. simple analyzer).
Unfortunately if you have removed stop words then you will need to re-index
to get them back.
On Tuesday, September 18, 2012 8:40:46 AM UTC+12, Yooz wrote:
Hi all,
We recently ran into an issue where querying for common words (and, or,
not, are, etc) with a text phrase query was necessary. Unfortunately, we
used the default analyzers and presumably removed all of these [english]
stop words. (Stop Token Filter). Is there any way to query for the common
words with the current index, or do we have to reindex our data with the
correct analyzers configured (i.e. simple analyzer).
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.