Hello; My manager is now totally stuck about being able to query data with * in it.
Here are two queries. TermQuery(new Term("type", "203")); WildcardQuery(new Term("name", "*home\**")); They are joined in a boolean query. That query gives this result when you call the toString(): +(type:203) +(name:*home\**) This looks right to me. Any theories as to why the it would not match: Document (relevant fields): Keyword<type:203> Keyword<name:marcipan + home*> Is the \ escaping both * characters? Thanks, Luke ----- Original Message ----- From: "Luke Shannon" <[EMAIL PROTECTED]> To: "Lucene Users List" <lucene-user@jakarta.apache.org> Sent: Thursday, February 17, 2005 2:44 PM Subject: Query Question > Hello; > > Why won't this query find the document below? > > Query: > +(type:203) +(name:*home\**) > > Document (relevant fields): > Keyword<type:203> > Keyword<name:marcipan + home*> > > I was hoping by escaping the * it would be treated as a string. What am I > doing wrong? > > Thanks, > > Luke > > > > --------------------------------------------------------------------- > 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]