Solr
  1. Solr
  2. SOLR-5447

Add a QParserPlugin for Lucene's SimpleQueryParser.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      Exactly as the title says, I would like to add a QParserPlugin to make Lucene's SimpleQueryParser available easily through Solr. I will add the SimpleQParserPlugin to the standard plugins list in QParserPlugin.

      The following options will be exposed:

      • A way to specify the fields to be queried on with boosts.
      • A way to override the default field if a different one is desired than what the schema has.
      • A way to set the default operator for whitespace as either 'AND' or 'OR.'
      • A way to set the enabled/disabled operators that are available through the SimpleQueryParser.
      1. SOLR-5447.patch
        25 kB
        Jack Conradson

        Activity

        Hide
        Jack Conradson added a comment -

        I have attached a patch.

        Show
        Jack Conradson added a comment - I have attached a patch.
        Hide
        ASF subversion and git services added a comment -

        Commit 1542486 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1542486 ]

        SOLR-5447: Add a QParserPlugin for Lucene's SimpleQueryParser

        Show
        ASF subversion and git services added a comment - Commit 1542486 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1542486 ] SOLR-5447 : Add a QParserPlugin for Lucene's SimpleQueryParser
        Hide
        ASF subversion and git services added a comment -

        Commit 1542488 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1542488 ]

        SOLR-5447: Add a QParserPlugin for Lucene's SimpleQueryParser

        Show
        ASF subversion and git services added a comment - Commit 1542488 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1542488 ] SOLR-5447 : Add a QParserPlugin for Lucene's SimpleQueryParser
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Jack!

        Show
        Shalin Shekhar Mangar added a comment - Thanks Jack!
        Hide
        ASF subversion and git services added a comment -

        Commit 1542507 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1542507 ]

        SOLR-5447: Added a test for simple query parser in QueryEqualityTest

        Show
        ASF subversion and git services added a comment - Commit 1542507 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1542507 ] SOLR-5447 : Added a test for simple query parser in QueryEqualityTest
        Hide
        ASF subversion and git services added a comment -

        Commit 1542509 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1542509 ]

        SOLR-5447: Added a test for simple query parser in QueryEqualityTest

        Show
        ASF subversion and git services added a comment - Commit 1542509 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1542509 ] SOLR-5447 : Added a test for simple query parser in QueryEqualityTest

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Jack Conradson
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development