lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] thedugas commented on issue #296: IndexOutOfRangeException when searching
Date Tue, 22 Sep 2020 03:33:09 GMT

thedugas commented on issue #296:
URL: https://github.com/apache/lucenenet/issues/296#issuecomment-696300662


   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)
   
   Query:
   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:
users@infra.apache.org



Mime
View raw message