Skip to content

Conversation

@radu-gheorghe
Copy link
Contributor

Relevant analyzer definition that matches e.g. c++ to c++ developer:

    <component id="linguistics"
    class="com.yahoo.language.lucene.LuceneLinguistics"
    bundle="lucene-linguistics">
      <config name="com.yahoo.language.lucene.lucene-analysis">
        <analysis>
          <item key="en">
            <tokenizer>
              <name>pattern</name>
              <conf>
                <item key="pattern">\s|\(|\)</item>
              </conf>
            </tokenizer>
            <tokenFilters>
              <item>
                <name>lowercase</name>
              </item>
            </tokenFilters>
          </item>
        </analysis>
      </config>
    </component>

@radu-gheorghe
Copy link
Contributor Author

While I was at it, I've added a sample app to illustrate how to use multiple profiles as well.

/cc @arnej27959 @bratseth

@radu-gheorghe radu-gheorghe changed the title Lucene Linguistics sample app defining custom analyzer Lucene Linguistics sample apps: custom analyzer and multiple profiles Jan 22, 2026
kkraune
kkraune previously approved these changes Jan 22, 2026
Copy link
Member

@kkraune kkraune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! maybe add the copyright notice to more files

bratseth
bratseth previously approved these changes Jan 22, 2026
Copy link
Member

@bratseth bratseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@radu-gheorghe
Copy link
Contributor Author

nice! maybe add the copyright notice to more files

Thanks! I've added a couple more. And fixed the two broken links from album-recommendation-java.

@bratseth bratseth merged commit cdfbd46 into master Jan 23, 2026
8 checks passed
@bratseth bratseth deleted the lucene-linguistics-custom-analyzer branch January 23, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants