[
https://issues.apache.org/jira/browse/LUCENE-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martijn van Groningen updated LUCENE-4824:
------------------------------------------
Attachment: QueryTimeJoinTest.java
Hi Atos,
I don't see this is a bug, but a lack of support.
By default long values are indexed as multiple terms (In a trie structure).
The query time joining reads all from / to field values as plain strings and
because of that a single number is read as multiple terms and the query time
joining doesn't work (joining more docs then it should).
I've updated your test case that indexes long values as one term. The joining
then works as expected, because the long is just one term per field.
I think it makes sense to fully support joining on numeric fields even if a
number is indexed as a trie. We just need to fetch the values as long type from
the FieldCache.
> Query time join returns different results based on the field type
> -----------------------------------------------------------------
>
> Key: LUCENE-4824
> URL: https://issues.apache.org/jira/browse/LUCENE-4824
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/join
> Affects Versions: 4.1, 4.2
> Reporter: Akos Kitta
> Labels: newbie
> Attachments: QueryTimeJoinTest.java, QueryTimeJoinTest.java
>
>
> I'm experiencing different query time joining behavior based on the type of
> the 'toField' and 'fromField'. Basically I got correct results when both
> 'toField' and 'fromField' are StringField, but incorrect in case of LongField.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]