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 2022/03/08 08:38:27 UTC

[lucenenet] 01/02: Update StandardQueryParser.cs

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 2f285a89e5334302aeac5c907574438b327386c1
Author: Andre R <ra...@users.noreply.github.com>
AuthorDate: Mon Mar 7 09:05:07 2022 +0100

    Update StandardQueryParser.cs
---
 src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
index d70bbfb..0afbac8 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Standard/StandardQueryParser.cs
@@ -47,7 +47,8 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
     /// <code>
     /// // the query config handler returned by StandardQueryParser is a
     /// // StandardQueryConfigHandler
-    /// queryParserHelper.QueryConfigHandler.Analyzer = new WhitespaceAnalyzer();
+    /// queryParserHelper.Analyzer = new WhitespaceAnalyzer();
+    /// queryParserHelper.QueryConfigHandler.Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, true);
     /// </code>
     /// <para/>
     /// The syntax for query strings is as follows (copied from the old QueryParser