Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-839

XML Query Parser support (deftype=xmlparser)

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3, 5.4, 6.0
    • Fix Version/s: 5.5, 6.0
    • Component/s: query parsers
    • Labels:
      None

      Description

      Lucene includes a query parser that is able to create the full-spectrum of Lucene queries, using an XML data structure.

      This patch adds "xml" query parser support to Solr.

      Example (from lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/NestedBooleanQuery.xml):

      <BooleanQuery fieldName="contents">  
        <Clause occurs="should">
          <BooleanQuery fieldName="contents">
            <Clause occurs="must">
              <TermQuery>doesNotExistButShouldBeOKBecauseOtherClauseExists</TermQuery>
            </Clause>
          </BooleanQuery>
        </Clause>
        <Clause occurs="should">
          <TermQuery>bank</TermQuery>
        </Clause>
      </BooleanQuery>
      

        Attachments

        1. SOLR-839-object-parser.patch
          13 kB
          Erik Hatcher
        2. SOLR-839.patch
          3 kB
          Erik Hatcher
        3. SOLR-839.patch
          10 kB
          Christine Poerschke
        4. SOLR-839.patch
          2 kB
          Ahmet Arslan
        5. lucene-xml-query-parser-2.4-dev.jar
          44 kB
          Erik Hatcher

          Issue Links

            Activity

              People

              • Assignee:
                cpoerschke Christine Poerschke
                Reporter:
                ehatcher Erik Hatcher
              • Votes:
                18 Vote for this issue
                Watchers:
                30 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: