DavidB
DavidB

Reputation: 2596

How do Lucene search terms work

I am using Lucene .net and have created a search that looks like this.

{+(Title:it*)}

This is pulling back a document with the title "this is an idea - i think its irrelevant "

If I create another search term as

{(Title:it*) (Title:s*)}

This pulls back "IT support"

Can anyone explain this, I would expect the first search to also pull back "IT Support"

Upvotes: 0

Views: 67

Answers (1)

mindas
mindas

Reputation: 26703

This is most likely because "it" is a stopword and is ignored - both when indexing and searching.

You can find the full list of English stopwords here.

Upvotes: 1

Related Questions