lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-8108) Field class should not let you analyze int values?
Date Tue, 26 Dec 2017 21:51:00 GMT
Michael McCandless created LUCENE-8108:
------------------------------------------

             Summary: Field class should not let you analyze int values?
                 Key: LUCENE-8108
                 URL: https://issues.apache.org/jira/browse/LUCENE-8108
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Michael McCandless


I stumbled on this by accident, by creating a {{Field}} instance with a {{Integer}} value
for its {{fieldsData}} and then setting {{tokenized = true}} in its {{FieldType}}.

If you do this then Lucene silently converts the int to a string and then tokenizes it, e.g.
applying synonyms, etc., if that's what your analysis chain does.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message