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

Add function for string length

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 7.0
    • None
    • search

    Description

      This allows a query to use the string length in a Solr query, without having to index a separate field with the length. The function is named "strlen" in the patch, but another option is "stringlength".

      Since this also introduced a new ValueSource in Lucene, I'm not sure if I should split the patch up into two separate issues, but as the Solr patch would rely on the Lucene patch being accepted, I've included them both in this issue for now.

      Patch includes two tests in TestFunctionQuery. Patch is against the current HEAD from github/lucene-solr.

      Attachments

        1. SOLR-9715.patch
          6 kB
          Mats Lindh

        Activity

          People

            Unassigned Unassigned
            mats.lindh Mats Lindh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: