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

XML Query Parser support (deftype=xmlparser)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3, 5.4, 6.0
    • 5.5, 6.0
    • query parsers
    • 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. lucene-xml-query-parser-2.4-dev.jar
          44 kB
          Erik Hatcher
        2. SOLR-839.patch
          3 kB
          Erik Hatcher
        3. SOLR-839-object-parser.patch
          13 kB
          Erik Hatcher
        4. SOLR-839.patch
          10 kB
          Christine Poerschke
        5. SOLR-839.patch
          2 kB
          Ahmet Arslan

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              ehatcher Erik Hatcher
              Votes:
              18 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: