Re: Only exact match searches working
Thank you for the reply. I have done a bit of reading and it says I can also use this one: filter class=solr.NGramFilterFactory minGramSize=3 maxGramSize=30 / This is what I will use I think, as it weeds out words like at I as a bonus. -- View this message in context: http://lucene.472066.n3.nabble.com/Only-exact-match-searches-working-tp4008160p4008264.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Only exact match searches working
That will match internal substrings in addition to prefix strings. EdgeNGram does only prefix substrings, which is generally what people want. So, NGramFilter would match England when the query is land or gland, gla, etc. Use the Solr Admin Analysis UI to enter text to see how the filter analyzes it to make sure it is what you expect. -- Jack Krupansky -Original Message- From: Spadez Sent: Monday, September 17, 2012 7:16 AM To: solr-user@lucene.apache.org Subject: Re: Only exact match searches working Thank you for the reply. I have done a bit of reading and it says I can also use this one: filter class=solr.NGramFilterFactory minGramSize=3 maxGramSize=30 / This is what I will use I think, as it weeds out words like at I as a bonus. -- View this message in context: http://lucene.472066.n3.nabble.com/Only-exact-match-searches-working-tp4008160p4008264.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Only exact match searches working
Ok. I can still define GramSize too? *filter class=solr.EdgeNGramFilterFactory minGramSize=3 maxGramSize=30 /* -- View this message in context: http://lucene.472066.n3.nabble.com/Only-exact-match-searches-working-tp4008160p4008361.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Only exact match searches working
Ok. I can still define GramSize too? *filter class=solr.EdgeNGramFilterFactory minGramSize=3 maxGramSize=30 /* Yes you can. http://lucene.apache.org/solr/api-3_6_1/org/apache/solr/analysis/EdgeNGramFilterFactory.html
Only exact match searches working
Hi, I finally got my Solr working. It indexes posts and I can search it from my site. I have run into one problem though. If I have an entry as England, when I search England on my site, or england I get the result returned. When I search Eng it tells me there are no results. My question is this, how do I make it so it doesn't have to be an exact match for results to be returned. -- View this message in context: http://lucene.472066.n3.nabble.com/Only-exact-match-searches-working-tp4008160.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Only exact match searches working
Two techniques: 1. Use a wildcard query: Eng* 2. Add an EdgeNGramFilterFactory to your index analyzer. -- Jack Krupansky -Original Message- From: Spadez Sent: Sunday, September 16, 2012 4:47 PM To: solr-user@lucene.apache.org Subject: Only exact match searches working Hi, I finally got my Solr working. It indexes posts and I can search it from my site. I have run into one problem though. If I have an entry as England, when I search England on my site, or england I get the result returned. When I search Eng it tells me there are no results. My question is this, how do I make it so it doesn't have to be an exact match for results to be returned. -- View this message in context: http://lucene.472066.n3.nabble.com/Only-exact-match-searches-working-tp4008160.html Sent from the Solr - User mailing list archive at Nabble.com.