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

payload text is parsed in a backward order

    XMLWordPrintableJSON

Details

    Description

      I followed [this|https://lucidworks.com/post/end-to-end-payload-example-in-solr/] to add a payload field for my solr schema and find out that DelimitedPayloadTokenFilter used to parse payload input is parsing it in a backward order, which will let it always find the first delimiter ('|' in my case) to split on, which will result in parsing error for inputs like "abc|def|0.5" (`def|0.5` is not a float). And it makes sense if my key for this payload happen to contain a '|'.  Is it possible to change it to split on the last delimiter or provide an option for this as the sub-string after the last delimiter is guaranteed to be a payload score?

      Attachments

        Activity

          People

            Unassigned Unassigned
            w268wang Weijie Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: