From dev-return-11699-apmail-lucenenet-dev-archive=lucenenet.apache.org@lucenenet.apache.org Mon Sep 21 18:48:00 2020 Return-Path: X-Original-To: apmail-lucenenet-dev-archive@www.apache.org Delivered-To: apmail-lucenenet-dev-archive@www.apache.org Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with ESMTP id 2369D1AE52 for ; Mon, 21 Sep 2020 18:48:00 +0000 (UTC) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id C04501231BA for ; Mon, 21 Sep 2020 18:47:59 +0000 (UTC) Received: (qmail 67333 invoked by uid 500); 21 Sep 2020 18:47:59 -0000 Delivered-To: apmail-lucenenet-dev-archive@lucenenet.apache.org Received: (qmail 67306 invoked by uid 500); 21 Sep 2020 18:47:59 -0000 Mailing-List: contact dev-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucenenet.apache.org Delivered-To: mailing list dev@lucenenet.apache.org Received: (qmail 67294 invoked by uid 99); 21 Sep 2020 18:47:59 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2020 18:47:59 +0000 From: =?utf-8?q?GitBox?= To: dev@lucenenet.apache.org Subject: =?utf-8?q?=5BGitHub=5D_=5Blucenenet=5D_thedugas_edited_a_comment_on_issue_?= =?utf-8?q?=23296=3A_IndexOutOfRangeException_when_searching?= Message-ID: <160071407921.32230.9776915050721058776.asfpy@gitbox.apache.org> Date: Mon, 21 Sep 2020 18:47:59 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-Reply-To: References: thedugas edited a comment on issue #296: URL: https://github.com/apache/lucenenet/issues/296#issuecomment-696300662 Platform = x64. 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