Solr
  1. Solr
  2. SOLR-839

XML Query Parser support (deftype=xmlparser)

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3, 5.4, master
    • Fix Version/s: 5.5, master
    • 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>
      
      1. lucene-xml-query-parser-2.4-dev.jar
        44 kB
        Erik Hatcher
      2. SOLR-839.patch
        2 kB
        Ahmet Arslan
      3. SOLR-839.patch
        10 kB
        Christine Poerschke
      4. SOLR-839.patch
        3 kB
        Erik Hatcher
      5. SOLR-839-object-parser.patch
        13 kB
        Erik Hatcher

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development