lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [lucenenet] thedugas commented on issue #296: IndexOutOfRangeException when searching
Date Mon, 21 Sep 2020 18:46:56 GMT

thedugas commented on issue #296:

   Example (Note: before adding reversed fields, the issue does not present itself):
   Analyzer: KeywordAnalyzer
   Field Definitions:
   new StringField("Address", string.Empty, Field.Store.YES)
   new StringField("Address" + "_Reversed, string.Empty, Field.Store.YES)
   new StringField("Zip", string.Empty, Field.Store.YES)
   new StringField("Zip" + "_Reversed", string.Empty, Field.Store.YES)
   var query = new BooleanQuery
     { new WildcardQuery(new Term("Address", "*hwy*")), Occur.MUST },
     { new WildcardQuery(new Term("Zip", "*06*")), Occur.MUST },
   indexSearcher.Search(query, 10)
   NOTE: If I name the "reversed" columns "_Reversed" + Name, the issue goes away.
   I apologize, I don't have the data to reproduce the exception any longer, as I rebuilt
the index with a different name for the reversed columns, and the issue seems to have gone
away, and to rebuild with the field names that were problematic takes a long time...

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:

View raw message