<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lucene on Lloyd Rochester's Geek Blog</title><link>https://lloydroc.github.io/tags/lucene/</link><description>Recent content in Lucene on Lloyd Rochester's Geek Blog</description><generator>Hugo</generator><language>en</language><copyright>Copyright © 2025, Lloyd Rochester.</copyright><lastBuildDate>Thu, 30 Jan 2020 10:53:31 +0000</lastBuildDate><atom:link href="https://lloydroc.github.io/tags/lucene/index.xml" rel="self" type="application/rss+xml"/><item><title>User Name Search with Apache Lucene</title><link>https://lloydroc.github.io/post/java/lucene_lower_case_whitespace_analyzer/</link><pubDate>Thu, 30 Jan 2020 10:53:31 +0000</pubDate><guid>https://lloydroc.github.io/post/java/lucene_lower_case_whitespace_analyzer/</guid><description>&lt;h1 id="hahahugoshortcode77s0hbhb">User Name Search with Apache Lucene&lt;/h1>
&lt;p>I wanted to use Apache Lucene to search User Names. It&amp;rsquo;s definitely not straightforward. This post explains how to do it by defining our own custom &lt;code>Analyzer&lt;/code> and explaining how we form the &lt;code>Document&lt;/code>, index the user names and query with a &lt;code>PrefixQuery&lt;/code>.&lt;/p>
&lt;p>First of all if you&amp;rsquo;re using Apache Lucene you&amp;rsquo;re my type of person! It&amp;rsquo;s an awesome project, but the documentation and examples are severely lacking.&lt;/p></description></item></channel></rss>