-----Original Message----- From: Steffen Heinrich [mailto:[EMAIL PROTECTED] Sent: Fri 3/9/2007 4:31 PM To: java-user@lucene.apache.org Subject: Re: Wildcard query with untokenized punctuation 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")); > > in 2.0.1 > doc.add(new Field("filename", "pagefile.sys", Field.Store.YES, > Field.Index.UN_TOKENIZED)); > > Maybe this will work as desired? Hi Steve; Thanks for your reply, but if I leave the field untokenized, then I can only search for the exact value ("pagefile.sys"), and I can't do any wildcarding at all. My goal here is to be able to use a wildcard that may cross one or more tokens. --Colin McGuigan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]