Is "it" a buildin stop word?


(ottsch) #1

Hi,

when I try to search an index for "it" there are no results. Does that mean
"it" gets ignored in the analyzing process? And if so, how can I turn that
off?

Thanks for your help!

Hannes.


(Igor Motov) #2

Yes, "it" is one of standard stop words in Lucene:
https://github.com/apache/lucene-solr/blob/lucene_solr_3_5/lucene/src/java/org/apache/lucene/analysis/StopAnalyzer.java#L51

You can change this list for default analyzer in config file:

index:
analysis:
analyzer:
default:
type: standard
stopwords: ["foo", "bar", "baz"]

See
http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.htmlfor
more information.

On Tue, Feb 28, 2012 at 9:23 AM, ottsch ottsch@gmail.com wrote:

Hi,

when I try to search an index for "it" there are no results. Does that
mean "it" gets ignored in the analyzing process? And if so, how can I turn
that off?

Thanks for your help!

Hannes.


(ottsch) #3

Thanks a lot for your quick answer!

On Tue, Feb 28, 2012 at 3:44 PM, Igor Motov imotov@gmail.com wrote:

Yes, "it" is one of standard stop words in Lucene:
https://github.com/apache/lucene-solr/blob/lucene_solr_3_5/lucene/src/java/org/apache/lucene/analysis/StopAnalyzer.java#L51

You can change this list for default analyzer in config file:

index:
analysis:
analyzer:
default:
type: standard
stopwords: ["foo", "bar", "baz"]

See http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html
for more information.

On Tue, Feb 28, 2012 at 9:23 AM, ottsch ottsch@gmail.com wrote:

Hi,

when I try to search an index for "it" there are no results. Does that
mean "it" gets ignored in the analyzing process? And if so, how can I turn
that off?

Thanks for your help!

Hannes.


(system) #4