Re: Searching any part of a string

2008-06-27 Thread Chris Hostetter
: Thanks for the suggestions. I've used indexed n-grams before to implement : spell-checking; I think in this case I may take a look at WildcardTermEnum : and RegexTermEnum. It seems like a good solution because I am doing my own : results ordering so Lucene's scoring is irrelevant in this case. I

Re: Searching any part of a string

2008-06-27 Thread Mark Ferguson
Hi Erick, Thanks for the suggestions. I've used indexed n-grams before to implement spell-checking; I think in this case I may take a look at WildcardTermEnum and RegexTermEnum. It seems like a good solution because I am doing my own results ordering so Lucene's scoring is irrelevant in this case.

Re: Searching any part of a string

2008-06-25 Thread Erick Erickson
Warning: I don't understand ngrams at all, so you should read this as a plea for those who do to tell me I'm off base . But I wonder if indexing as n-grams would be a way to cope with this issue that lots of people have. *assuming* you are thinking about single terms, then it seems that "smith" w

Searching any part of a string

2008-06-25 Thread Mark Ferguson
Hello, I am currently keeping an index of all our client's usernames. The search functionality is implemented using a PrefixFilter. However, we would like to expand the functionality to be able to search any part of a user's name, rather than requiring that it begin with the query string. So for e

Searching any part of a string

2008-06-25 Thread Mark Ferguson
Hello, I am currently keeping an index of all our client's usernames. The search functionality is implemented using a PrefixFilter. However, we would like to expand the functionality to be able to search any part of a user's name, rather than requiring that it begin with the query string. So for e