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

Add methods to SimpleQuery to clear and bulk add to Sort and FilterQuery variables

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0 GA
    • Fix Version/s: None
    • Component/s: Core
    • Labels:

      Description

      When working with the same SimpleQuery object, I found that it would be nice to clear out the current options in place for Sorting or Facet Queries. Since the member variables are private, I find that it would be better to add this functionality to the core library.

      Clearing would look something like this:

      SimpleQuery.java
      public void clearSort() {
          this.sort = null;
      }
      

      Bulk additions would look something like this:

      SimpleQuery.java
      public void addSort(Collection<Sort> sortCollection) {
          for (Sort sort : sortCollection) {
              this.addSort(sort);
          }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              cstrobl Christoph Strobl
              Reporter:
              sean.staley Sean M Staley
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: