Arsineh, There was some discussion on this list about this topic earlier. As I recall, the escaping a '-' doesn't work (for reasons I don't recall - something about interaction of analyzer and tokenizer, I think). To handle this for my own purposes, I believe I modified the QueryParser.jj source to add a '-' as a valid alphanumeric code. However, you have to be careful because this may cause ordinary words not to match if they are hyphenated from word-wrapping.
HTH, Terry ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 5:43 AM Subject: query > Hi everyone, > > I have indexed a table in the database. > the table has a column named TagNr. It contains values like 25-XX8569, > 41-VL451 ect.... > By indexing the table I use the factory method Field.Keyword for this > column. So the values are not tokenised in this field. > Now, when I'm searching for a value containing '-' in the field TagNr I > don't get any results. > I have escaped '-' using '\' like 25\-XX8569, 25\\-XX8569 and 25\-\XX8569. > But I still don't get anything. > > Has someone any suggestions? > > Thaks for help > Arsineh > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]