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 6684711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:58:18+00:00 2026-05-26T04:58:18+00:00

Lucene: I would like to do a search on the index which I have

  • 0

Lucene: I would like to do a search on the index which I have built using Lucene but while searching I would like to ignore case of the search criteria , how can i do it ?
For example i have in my index(lucene) either http or HTTP so when I search using http i should get both the results back.

  • 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-26T04:58:19+00:00Added an answer on May 26, 2026 at 4:58 am

    That depends on a few things. First, if the analyzer you used to index didn’t already tokenize the text into lowercase, you’ll find it extremely difficult to do this.

    The KeywordAnalyzer, I believe, preserves case. So, the word “Hello” would be left as “Hello” as a term in the index, meaning the only way you could find that word, is to use the exact same case.

    The StandardAnalyzer, however, converts all terms to lowercase. So, “Hello” would be “hello” in the terms list, but if you’re storing the text as well, not just analyzing it, it would preserve the case of the string if you were to retrieve it from the index. However, a search for “HEllo”, “heLLO”, “HeLlO” would all be the same as “hello”, as it would convert all of those to lowercase.

    You are not stuck with these analyzers, either, you can always create your own.

    Finally, it is highly recommended that you use the same Analyzer you used to create the index when you are searching it.

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

Sidebar

Related Questions

I'm using Hibernate Search (which uses Lucene) for searching some Data I have indexed
I have created a lucene index . I would like to get all documents
I would like to find out how lucene search works so fast. I can't
I am using hibernate-search-3.2.1.Final and would like to parse my input into shingles. From
I'm using Lucene to search through an index of XML documents. I'm supposed to
I would like to use Lucene to provide full text search capability on some
I'm using Lucene.net 3.0.3.0 (the latest version right now). I would like to know
I have a field that I am indexing with Lucene like so: @Field(name=hungerState, index=Index.TOKENIZED,
I am using Lucene to index my database and then perform a phrase search
CouchDB offers the ability to perform faceted search via Lucene. I would like to

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.