tomglk commented on pull request #123:
URL: https://github.com/apache/solr/pull/123#issuecomment-845719776


   I am currently debugging some ltr stuff and stumbled upon this:
   ``` java
   final String string = indexableField.stringValue();
   if (string.length() == 1) {
       // boolean values in the index are encoded with a single char contained 
in TRUE_TOKEN or FALSE_TOKEN
       // (see BoolField)
       if (string.charAt(0) == BoolField.TRUE_TOKEN[0]) {
         return 1f;
       }
       if (string.charAt(0) == BoolField.FALSE_TOKEN[0]) {
         return 0f;
       }
   }
   ```
   This code is in the `FieldValueFeatureScorer`. Why don't we try to parse the 
string value as number?
   We do that for docValues, but not for stored fields.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to