[jira] [Commented] (LUCENE-2604) add regexpquery to queryparser

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (LUCENE-2604) add regexpquery to queryparser

Sebastian Nagel (Jira)

    [ https://issues.apache.org/jira/browse/LUCENE-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213841#comment-13213841 ]

Yury Kats commented on LUCENE-2604:
-----------------------------------

I just came across a problem with this, where regular expressions are being parsed across fields. Feels like a bug to me.

Queries like these fail to parse:
fieldName:/a fieldName:/a
SEVERE: org.apache.solr.common.SolrException: no field name specified in query and no defaultSearchField defined in schema.xml
        at org.apache.solr.search.SolrQueryParser.checkNullField(SolrQueryParser.java:106)
        at org.apache.solr.search.SolrQueryParser.getFieldQuery(SolrQueryParser.java:124)
        at org.apache.lucene.queryparser.classic.QueryParserBase.handleBareTokenQuery(QueryParserBase.java:1058)
        at org.apache.lucene.queryparser.classic.QueryParser.Term(QueryParser.java:358)
        at org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:257)
        at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:212)
        at org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:170)
        at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:118)
        at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:74)
        at org.apache.solr.search.QParser.getQuery(QParser.java:143)

fieldName:/* fieldName:/*
java.lang.NullPointerException
        at org.apache.solr.schema.IndexSchema$DynamicReplacement.matches(IndexSchema.java:747)
        at org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1026)
        at org.apache.solr.schema.IndexSchema.getFieldType(IndexSchema.java:980)
        at org.apache.solr.search.SolrQueryParser.getWildcardQuery(SolrQueryParser.java:172)
        at org.apache.lucene.queryparser.classic.QueryParserBase.handleBareTokenQuery(QueryParserBase.java:1039)
        at org.apache.lucene.queryparser.classic.QueryParser.Term(QueryParser.java:358)
        at org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:257)
        at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:212)
        at org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:170)
        at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:118)
        at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:74)
        at org.apache.solr.search.QParser.getQuery(QParser.java:143)

               

> add regexpquery to queryparser
> ------------------------------
>
>                 Key: LUCENE-2604
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2604
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: core/queryparser
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: LUCENE-2604.patch, LUCENE-2604.patch, LUCENE-2604.patch
>
>
> patch that adds RegexpQuery if you /enter an expression between slashes like this/
> i didnt do the contrib ones but could add it there too if it seems like a good idea.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]