lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <s...@elyograg.org>
Subject Re: Help with StopFilterFactory
Date Thu, 21 Aug 2014 15:52:51 GMT
On 8/21/2014 8:40 AM, heaven wrote:
> With 1.5 schema it work but not as it is expected. I am indexing
> twitter.com/testuser and only need to get exact matches, not those that
> match "twitter" or "com". so my search results should contain just one
> record:
> * http://twitter.com/testuser
>
> but what I see with 1.5 schema is:
> * http://twitter.com/testuser
> * http://twitter.com/otheruser (match by twitter and com)
> * http://twitter.com/anotheruser
> * etc, including all sites that match twitter and/or com (and there's a lot,
> and all are unrelated).


If you set the q.op parameter to "AND", or issue a phrase query
(surrounded by quotes), that would do it.  Using the default operator
would still match if you searched for the following, but the phrase
query (same thing surrounded by quotes) would not:

testuser twittercom

Thanks,
Shawn


Mime
View raw message