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 4067e7596c99cdaa036b26afb03eaca624979e27
Author: Shad Storhaug <[email protected]>
AuthorDate: Sat Sep 19 16:24:22 2020 +0700

    websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial: 
Updated code sample for MultiPhraseQuery to use collection initializer
---
 .../site/lucenetemplate/partials/home-quick-start.tmpl.partial    | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial 
b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
index 9e99978..d572659 100644
--- a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
@@ -48,9 +48,11 @@ writer.Flush(triggerMerge: false, applyAllDeletes: false);
 <p class="text-center">Construct a query</p>
 <pre class="clean">
 <code class="csharp">// search with a phrase
-var phrase = new MultiPhraseQuery();
-phrase.Add(new Term("favoritePhrase", "brown"));
-phrase.Add(new Term("favoritePhrase", "fox"));
+var phrase = new MultiPhraseQuery
+{
+    new Term("favoritePhrase", "brown");
+    new Term("favoritePhrase", "fox");
+};
 </code>
 </pre>
 </div>                    

Reply via email to