Re: how to do partial word searches?

2010-03-10 Thread Rob Ganly
hi all, i was having the same problem, i needed to be able to search a substring anywhere within a word for a specific field. i used the NGramTokenizerFactory factory in my index analyzer and it seems to work well. ( http://lucene.apache.org/solr/api/org/apache/solr/analysis/NGramTokenizerFactory

Re: how to do partial word searches?

2009-12-03 Thread Joel Nylund
Just for an update on this, I tried text_rev and it seems to work great. So in summary, if you want partial word matches within a url or small sentence (title), here is what I did and it seems to work pretty well: - create an extra field that is all lower case , I used mysql lcase in the qu

Re: how to do partial word searches?

2009-11-25 Thread Robert Muir
Hi, if you are using Solr 1.4 I think you might want to try type text_rev (look in the example schema.xml) unless i am mistaken: this will enable leading wildcard support for that field. this doesn't do any stemming, which I think might be making your wildcards behave wierd. it also enables rever

Re: how to do partial word searches?

2009-11-25 Thread Erick Erickson
Confession: I haven't had occasion to use the ngram thingy, but here's the theory And note that SOLR has n-gram tokenizers available.. Using a 2-gram example for sullivan, the n-gram would index these tokens... su, ul, ll, li, iv, va, an. Then at query time in your example, sulli would be brok

Re: how to do partial word searches?

2009-11-25 Thread Joel Nylund
Hi Erick, thanks for the links, I read both of them and I still have no idea what to do, lots of back and forth, but didn't see any solution on it. One person talked about indexing the field in reverse and doing and ON on it, this might work I guess. thanks Joel On Nov 24, 2009, at 9:12

Re: how to do partial word searches?

2009-11-24 Thread Erick Erickson
copying from Eric Hatcher: See http://issues.apache.org/jira/browse/SOLR-218 - Solr currently does not have leading wildcard support enabled. There's a pretty extensive recent exchange on this, see the thread on the user's list titled "leading and trailing wildcard query"Best Erick On Tue, Nov

how to do partial word searches?

2009-11-24 Thread Joel Nylund
Hi, I saw some older postings on this, but didnt see a resolution. I have a field called title, I would like to be able to find partial word matches within the title. For example: http://localhost:8983/solr/select?q=textTitle:%22*sulli*%22 I would expect it to find: the daily dish | by andr

Re: partial word searches

2007-07-08 Thread Yonik Seeley
On 7/8/07, Alessandro Ferrucci <[EMAIL PROTECTED]> wrote: [...] last-name:And* Now I get 0 results back.odd.. Since "text" probably has a lowercase filter, try last-name:and* Wildcard queries aren't run through the query analyzer because things like stemming wouldn't work with partial wor

partial word searches

2007-07-08 Thread Alessandro Ferrucci
Yo guys, quick question..I have a pretty simple solr instance running.. the relevant part of the schema is as such: I've got stuff indexed fine. Let's say I do a query as such: last-name:Anderson I get 27 records (the correct result), so far so good... now I want t