[ https://issues.apache.org/jira/browse/PYLUCENE-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031259#comment-13031259 ]
Christopher Currens commented on PYLUCENE-9: -------------------------------------------- I've posted a question to the java-lucene list, however, I'm sure it won't help at all. The simple fact is that the lucene 3.0 jar parses the query as <ft:"calendar item msg">. The *same* lucene 3.0 jar when invoked from pylucene, produces <ft:"calendar item ? msg"> for me, on both windows and ubuntu boxes. I suppose this just might be an issue with jcc? I've been able to produce this both on my boxes at work, and my box at home, both producing the incorrect output. Perhaps I'm most curious if this can be reproduced by any developer for pylucene, or if its just some crazy environment issue happening on my boxes and everyone else I know. > QueryParser replacing stop words with wildcards > ----------------------------------------------- > > Key: PYLUCENE-9 > URL: https://issues.apache.org/jira/browse/PYLUCENE-9 > Project: PyLucene > Issue Type: Bug > Environment: Windows XP 32-bit Sp3, Ubuntu 10.04.2 LTS i686 > GNU/Linux, jdk1.6.0_23 > Reporter: Christopher Currens > > Was using query parser to build a query. In Java Lucene (as well as > Lucene.Net), the query "Calendar Item as Msg" (quotes included), is parsed > properly as FullText:"calendar item msg" in Java Lucene and Lucene.Net. In > pylucene, it is parsed as: FullText:"calendar item ? msg". This causes > obvious problems when comparing search results from python, java and .net. > Initially, I thought it was the Analyzer I was using, but I've tried the > StandardAnalyzer and StopAnalyzer, which work properly in Java and .Net, but > not pylucene. > Here is code I've used to reproduce the issue: > >>> from lucene import StandardAnalyzer, StopAnalyzer, QueryParser, Version > >>> analyzer = StandardAnalyzer(Version.LUCENE_30) > >>> query = QueryParser(Version.LUCENE_30, "FullText", analyzer) > >>> parsedQuery = query.parse("\"Calendar Item as Msg\"") > >>> parsedQuery > <Query: FullText:"calendar item ? msg"> > >>> analyzer = StopAnalyzer(Version.LUCENE_30) > >>> query = QueryParser(Version.LUCENE_30) > >>> parsedQuery = query.parse("\"Calendar Item as Msg\"") > >>> parsedQuery > <Query: FullText:"calendar item ? msg"> > I've noticed this in pylucene 2.9.4, 2.9.3, and 3.0.3 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira