website: Changed home page example to use Console.WriteLine() instead of 3rd party LinqPad Dump() method.
diff --git a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
index ef89a38..6bcead6 100644
--- a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
@@ -69,12 +69,17 @@
using var reader = writer.GetReader(applyAllDeletes: true);
var searcher = new IndexSearcher(reader);
var hits = searcher.Search(phrase, 20 /* top 20 */).ScoreDocs;
+
+// Display the output in a table
+Console.WriteLine($"{"Score",10}" +
+ $" {"Name",-15}" +
+ $" {"Favorite Phrase",-40}");
foreach (var hit in hits)
{
- var foundDoc = searcher.Doc(hit.Doc);
- hit.Score.Dump("Score");
- foundDoc.Get("name").Dump("Name");
- foundDoc.Get("favoritePhrase").Dump("Favorite Phrase");
+ var foundDoc = searcher.Doc(hit.Doc);
+ Console.WriteLine($"{hit.Score:f8}" +
+ $" {foundDoc.Get("name"),-15}" +
+ $" {foundDoc.Get("favoritePhrase"),-40}");
}
</code>
</pre>