Solr
  1. Solr
  2. SOLR-1569

Allow literal Strings in functions

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5, 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      Some functions (for instance, those who take a geohash) may need to pass literal strings. This patch modifies the FunctionQParser to allow for quoted strings in functions (either single quote or double quote) to be passed through as a LiteralValueSource. It also adds the LiteralValueSource.

      1. SOLR-1569.patch
        6 kB
        Grant Ingersoll

        Issue Links

          Activity

          Show
          Grant Ingersoll added a comment - See http://www.lucidimagination.com/search/document/2ca306cbd392493f/passing_string_constants_to_functions
          Hide
          Yonik Seeley added a comment -

          +1, looks fine.

          Show
          Yonik Seeley added a comment - +1, looks fine.
          Hide
          Grant Ingersoll added a comment -

          Committed revision 881319.

          Show
          Grant Ingersoll added a comment - Committed revision 881319.
          Hide
          Hoss Man added a comment -

          Correcting Fix Version based on CHANGES.txt, see this thread for more details...

          http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E

          Show
          Hoss Man added a comment - Correcting Fix Version based on CHANGES.txt, see this thread for more details... http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E
          Hide
          Grant Ingersoll added a comment -

          Bulk close for 3.1.0 release

          Show
          Grant Ingersoll added a comment - Bulk close for 3.1.0 release

            People

            • Assignee:
              Grant Ingersoll
              Reporter:
              Grant Ingersoll
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development