Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4044084
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:12:33+00:00 2026-05-20T13:12:33+00:00

This is a question for using Lucene via the NHibernate.Search namespace, which works in

  • 0

This is a question for using Lucene via the NHibernate.Search namespace, which works in conjunction with Lucene.

I’m indexing a Title in the Index: Grey’s Anatomy

Title : "Grey's Anatomy"

By using Luke, I see that that title is getting Tokenized into:

Title: anatomy
Title: grey

Now, I get a result if I search for:

"grey" or "grey's"

However, if I search for “greys” then I get nothing.

I would like “greys” to return a result. And I guess this could be an issue with any word with an apostrophe.

So, here are some questions:

  1. Am I right in thinking I could fix this issue either by changing something on the time of index (so, changing the tolkenizer..??) or changing it a query time (query parser?)
  2. If there is a solution, could someone provide a small code sample?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:12:34+00:00Added an answer on May 20, 2026 at 1:12 pm

    If you make a classic Term search using Lucene, then greys it’s most likely not to show on the results, except that you make a nice tokenizing work when saving, so from where I see it, you have 2 choices or a 3rd beign a combination of them:

    1. Use a Stemmer for indexed data and query. Stemmers are fast, and you can always find an implementation of Porter’s stemmer somewhere in Google. Problem is when you look for different languages.
    2. Use Fuzzy queries. Using a Fuzzy Query you can set the edit distance that you want to get “away” from the word being search. The thing is that because 2 words are “close” using an edition distance (i.e, Lehvenstein) doesn’t mean that they’re the same, but the problem of Grey and Grey’s and Greys should be solved with setting an edit distance of 2.

    I think you will be able to find a decent implementation of the Porter Stemmer, which is nice right here.

    Hope I can help!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: In this question I'm using the term autocomplete (or iterative search) to refer
I roamed the site for this question using the search engine, and I don't
This is the question: Im using Lucene.Net, and Im importing like ~255k documents with
Yesterday I posted this question regarding using lambdas inside of a Join() method to
Similar to this question I am using a custom VirtualPathProvider to retrieve views that
I am trying to integrated linkedIn using this question answer Posting LinkedIn message from
This question is related to another question I wrote: Trouble using DOTNET from PHP.
This question is related to this SO post Rather than using a recursive CTE
This question came about because the cells gem specifies template directories using File.join('app','cells'). That
This question is an extension to the one raised here: Using factory_girl in Rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.