[ http://issues.apache.org/jira/browse/LUCENE-464?page=all ] Yonik Seeley closed LUCENE-464: -------------------------------
Resolution: Invalid Hoss is correct. Closing... please reopen (or post to java-user) if we have misunderstood your problem. > Using different analyzer in QueryParser for Keyword Fields and Text Fields > -------------------------------------------------------------------------- > > Key: LUCENE-464 > URL: http://issues.apache.org/jira/browse/LUCENE-464 > Project: Lucene - Java > Type: Improvement > Components: QueryParser > Versions: 1.4 > Environment: All > Reporter: Wing Yung > Priority: Minor > > I have a Text field (call it "text") and a Keyword field (call it "keyword"). > I'd like to be able to do the following search: > text:"some text" AND keyword:"http://somekeyword" > to find documents where the text contains "some" and "text" and the keyword > is "http://somekeyword" > I want the text part of the query to use the StandardAnalyzer and the keyword > portion to use a trivial analyzer that just passes the text string through. > In the above case, Lucene uses the QueryParser's analyzer (I used > StandardAnalyzer) to parse "http://somekeyword" into "http" and > "somekeyword", which is not what I want. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]