Re: Words not found, large file indexing

2007-03-09 Thread Steffen Heinrich
:25, Chris Hostetter wrote: > > are you perhaps exceding this... > > http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexWriter > .html#setMaxFieldLength(int) > -- -- ~~~~~ -- -- steff

Re: Wildcard query with untokenized punctuation

2007-03-09 Thread Steffen Heinrich
On 9 Mar 2007 at 15:10, McGuigan, Colin wrote: > I have a "filename" field in Lucene that holds a value, like this: > pagefile.sys > Hi Colin, I'm still _very_ new to lucene, but isn't that what the un-tokenized indexing is for? Like in 1.9.1 doc.add(Field.Keyword("filename", "pagefile.sys"));

Re: Query String for a phrase?

2007-03-11 Thread Steffen Heinrich
On 11 Mar 2007 at 22:58, ruchi thakur wrote: > Thanks a lot for your help.. > below is a snapshot from the code, am using for search > org.apache.lucene.analysis.StopAnalyzer sa = new > org.apache.lucene.analysis.StopAnalyzer(); > org.apache.lucene.analysis.Analyzer analyzer = sa; > QueryParser p

Turning PrefixQuery into a TermQuery

2007-04-11 Thread Steffen Heinrich
Hello Lucene users, I'm rather new to lucene and java but have done work with other search engines some time before. Right now I'm trying my hands (and luck) on a 'search as you type'- sort of high performance search a la GoogleSuggest. There meanwhile are on the net, a number of examples for su

Re: Turning PrefixQuery into a TermQuery

2007-04-12 Thread Steffen Heinrich
On 11 Apr 2007 at 18:05, Erick Erickson wrote: > Rather than using a search, have you thought about using a TermEnum? > It's much, much, much faster than a query. What it allows you to do > is enumerate the terms in the index on a per-field basis. Essentially, this > is what happens when you do a P

Re: Turning PrefixQuery into a TermQuery

2007-04-12 Thread Steffen Heinrich
On 12 Apr 2007 at 7:13, Antony Bowesman wrote: > Steffen Heinrich wrote: > > Normally an IndexWriter uses only one default Analyzer for all its > > tokenizing businesses. And while it is appearantly possible to supply > > a certain other instance when adding a specific

Re: Turning PrefixQuery into a TermQuery

2007-04-12 Thread Steffen Heinrich
On 12 Apr 2007 at 0:28, karl wettin wrote: > > 11 apr 2007 kl. 22.32 skrev Steffen Heinrich: > > > According to occasional references on this list some people have > > already tried to implement such a search with lucene but did they > > succeed? > > > > M

Re: Turning PrefixQuery into a TermQuery

2007-04-12 Thread Steffen Heinrich
On 12 Apr 2007 at 9:27, Erick Erickson wrote: > See below ... > Not quite. As I understand your problem, you want all the terms that > match (or at least a subset) for a field. For this, WildcardTermEnum > is really all you need. Think of it this way... > (Wildcard)TermEnum gives you a list of

Re: Turning PrefixQuery into a TermQuery

2007-04-12 Thread Steffen Heinrich
On 12 Apr 2007 at 16:49, karl wettin wrote: > > 12 apr 2007 kl. 12.19 skrev Steffen Heinrich: > > > > > The intended system however can not be trained by user input. The > > suggestions have to come from a given corpus (e.g. an ocasionally > > updated product dat

Re: Turning PrefixQuery into a TermQuery

2007-04-12 Thread Steffen Heinrich
On 12 Apr 2007 at 20:22, karl wettin wrote: > > 12 apr 2007 kl. 20.00 skrev Steffen Heinrich: > > > This search is only meant to be used in an ajax-driven web > > application. > > And the basic idea is to give the user incentive and turn him to > > something