<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lucene.NET on Beckshome.com: Thomas Beck's Blog</title><link>https://blog.beckshome.com/tags/lucene.net/</link><description>Recent content in Lucene.NET on Beckshome.com: Thomas Beck's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 25 Nov 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.beckshome.com/tags/lucene.net/index.xml" rel="self" type="application/rss+xml"/><item><title>Lucene + Blazor, Part 5: Highlighting</title><link>https://blog.beckshome.com/2022/11/lucene-blazor-part-5-highlighting/</link><pubDate>Fri, 25 Nov 2022 00:00:00 +0000</pubDate><guid>https://blog.beckshome.com/2022/11/lucene-blazor-part-5-highlighting/</guid><description>&lt;p&gt;In this final installment of my Blazor + Lucene.Net series, we&amp;rsquo;ll be adding highlights for the search terms found in the header and body text of each of our results. The implementation of highlighting makes use of the Lucene.Net.Highlighter library, plugging this library into a simple method that can be used as a filter for search results to highlight key terms.&lt;/p&gt;
&lt;p&gt;The code and code narrative below reflects the changes that have been made on top of the first 4 posts. All &lt;a href="https://github.com/thbst16/dotnet-lucene-search/tree/main/5-Highlighting"&gt;source code is available online&lt;/a&gt; for this highlighting post.&lt;/p&gt;</description></item><item><title>Lucene + Blazor, Part 4: Faceting</title><link>https://blog.beckshome.com/2022/11/lucene-blazor-part-4-faceting/</link><pubDate>Sun, 20 Nov 2022 00:00:00 +0000</pubDate><guid>https://blog.beckshome.com/2022/11/lucene-blazor-part-4-faceting/</guid><description>&lt;p&gt;In this fourth installment of my Blazor + Lucene.Net series, we&amp;rsquo;ll make the most significant updates to the classes, search function and UI to date. Facets enrich the query responses, enabling users to further tune the search results along specific, pre-defined vectors. The implementation of facets uses the Lucene.Net.Facet library to implement an additional faceted index over two attributes &amp;ndash; Scholars and Universities &amp;ndash; which are applied on top of the WaffleText class and data.&lt;/p&gt;</description></item><item><title>Lucene + Blazor, Part 3: Auto Complete</title><link>https://blog.beckshome.com/2022/11/lucene-blazor-part-3-auto-complete/</link><pubDate>Sat, 12 Nov 2022 00:00:00 +0000</pubDate><guid>https://blog.beckshome.com/2022/11/lucene-blazor-part-3-auto-complete/</guid><description>&lt;p&gt;In this third installment of my Blazor + Lucene.Net series, I&amp;rsquo;ll start tackling some advanced Lucene functionality, namely auto-complete. For advanced Lucene work, the most important lessons is &lt;b&gt;don&amp;rsquo;t roll your own&lt;/b&gt; functionality. If you go to the &lt;a href="https://lucenenet.apache.org/docs/4.8.0-beta00007/api/Lucene.Net/overview.html"&gt;docs for the Lucene.Net API&lt;/a&gt;, you&amp;rsquo;ll see that a ton of additional functionality is built into Lucene via modules. Modules exist for faceting, highlighting, spatial search and autosuggest, amongst others. Lots of the examples and StackOverflow answers are roll-your-own solutions &amp;ndash; don&amp;rsquo;t do it!!&lt;/p&gt;</description></item><item><title>Lucene + Blazor, Part 2: Results Paging</title><link>https://blog.beckshome.com/2022/11/lucene-blazor-part-2-results-paging/</link><pubDate>Sat, 05 Nov 2022 00:00:00 +0000</pubDate><guid>https://blog.beckshome.com/2022/11/lucene-blazor-part-2-results-paging/</guid><description>&lt;p&gt;In the &lt;a href="https://blog.beckshome.com/2022/10/lucene-blazor-part-1-basic-search/"&gt;first installment of this series&lt;/a&gt;, we looked at returning results from a limited pool of items in a Lucene full text index. In this second installment, we significantly increase the number of generated items (3,000, by default) and add a numbered paging system, as used by the main commercial search engines and search sites.&lt;/p&gt;
&lt;p&gt;The code and code narrative below reflects the changes that have been made since the first post. All &lt;a href="https://github.com/thbst16/dotnet-lucene-search/tree/main/2-ResultsPaging"&gt;source code is available online&lt;/a&gt; for this results paging post.&lt;/p&gt;</description></item><item><title>Lucene + Blazor, Part 1: Basic Search</title><link>https://blog.beckshome.com/2022/10/lucene-blazor-part-1-basic-search/</link><pubDate>Sun, 30 Oct 2022 00:00:00 +0000</pubDate><guid>https://blog.beckshome.com/2022/10/lucene-blazor-part-1-basic-search/</guid><description>&lt;p&gt;Lucene.NET is a C# port of the Java Lucene search engine library. Lucene.NET provides robust search and index capabilities enhanced by a wide array of support packages (e.g. auto-suggest, faceting) that enable the creation of robust search facilities within .NET applications.&lt;/p&gt;
&lt;p&gt;While &lt;a href="https://code-maze.com/how-to-implement-lucene-dotnet/"&gt;useful and recent tutorials&lt;/a&gt; exist on using Lucene.NET in a command line context, there is a dearth of tutorials on using Lucene.NET in a web context, especially with the current Blazor framework. This tutorial fills that gap, with this existing article being the first in a series that will illustrate the buildout of a Blazor-based search site.&lt;/p&gt;</description></item></channel></rss>