You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/06/30 21:50:54 UTC
[lucenenet] 18/27:
Lucene.Net.QueryParser.ComplexPhrase.ComplexPhraseQueryParser: Remove
ElementAt() from List (#261)
This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 29d186c3fb22cfb8fe162a23d2f5731ca3eb6048
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Mon Jun 29 11:36:53 2020 +0700
Lucene.Net.QueryParser.ComplexPhrase.ComplexPhraseQueryParser: Remove ElementAt() from List (#261)
---
src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs b/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs
index af198b6..9a43be7 100644
--- a/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs
@@ -289,7 +289,7 @@ namespace Lucene.Net.QueryParsers.ComplexPhrase
AddComplexPhraseClause(sc, (BooleanQuery)qc);
if (sc.Count > 0)
{
- allSpanClauses[i] = sc.ElementAt(0);
+ allSpanClauses[i] = sc[0];
}
else
{