Uploaded image for project: 'Spring Data for Apache Solr'
  1. Spring Data for Apache Solr
  2. DATASOLR-430

Using Criteria to build query is incompatible with Solr

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: 2.1.8 (Ingalls SR8)
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      When you use Criteria to build a query it drops unnecessary parentheses surrounding ORs or ANDs according the rules of boolean algebra. However, Solr does not respect boolean algebra so the extra parentheses are required. Solr is not even evaluating it from left to right, but some strange custom logic.

      See for more details: http://robotlibrarian.billdueber.com/2011/12/solr-and-boolean-operators/

      Please update the Criteria query writer to include extra parentheses.

        Attachments

          Activity

            People

            Assignee:
            cstrobl Christoph Strobl
            Reporter:
            chris.malloy Chris Malloy
            Last updater:
            Christoph Strobl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified