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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:08:16+00:00 2026-05-30T10:08:16+00:00

I am using solr for searching. When i search a word contains uppercase letters

  • 0

I am using solr for searching. When i search a word contains uppercase letters from

description, its not showing any result. But it gives result for lowercase letters ..

Eg: If my query is q=description:* stack * , i will get the result . But if query is

q=description:* Stack * , it wont give any result evenif description contains that word

My schema contains :

<fieldType name="string" class="solr.TextField">
 <analyzer type="index">
  <tokenizer class="solr.KeywordTokenizerFactory"/>
  <filter class="solr.ASCIIFoldingFilterFactory"/>
  <filter class="solr.LowerCaseFilterFactory" />
  <filter class="solr.ReversedWildcardFilterFactory" />
 </analyzer>
 <analyzer type="query">
  <tokenizer class="solr.KeywordTokenizerFactory"/>
  <filter class="solr.ASCIIFoldingFilterFactory"/>
  <filter class="solr.LowerCaseFilterFactory" />
   <filter class="solr.ReversedWildcardFilterFactory" />
    </analyzer>
</fieldType>

I want to search with upper case letters also..

Can someone help me ?

  • 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-30T10:08:18+00:00Added an answer on May 30, 2026 at 10:08 am

    Have a look at the Solr wiki. It says:

    Add this filter to the index analyzer, but not the query analyzer.

    Try querying with debugQuery=on after you’ve changed the schema to reflect the wiki instructions:

    <str name="querystring">text:*Stack*</str>
    <str name="parsedquery">text:#1;*kcatS*</str>
    

    As you can see, the ReversedWildcardFilterFactory changes your query even if it’s not in your query analyzer chain, with a fieldType like this:

    <fieldType name="text" class="solr.TextField">
        <analyzer type="index">
            <tokenizer class="solr.KeywordTokenizerFactory"/>
            <filter class="solr.ASCIIFoldingFilterFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>           
            <filter class="solr.ReversedWildcardFilterFactory" />       
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.KeywordTokenizerFactory"/>       
            <filter class="solr.ASCIIFoldingFilterFactory"/>
            <filter class="solr.LowerCaseFilterFactory"/>               
        </analyzer>
    </fieldType>
    

    Furthermore, the LowerCaseFilterFactory is not fired for your query (the S is not lowercase in the parsed query). The same happens for ASCIIFoldingFilterFactory.
    Have a look here to know more:

    Solr does not analyze queries in which there are wildcards. Yes, this
    means that the filter LowerCaseFilterFactory, during indexing,
    turns Stack to stack but when making queries this is not happening, despite the
    fact that the filters are defined correctly. And that is why you don’t
    get any search results.

    The easiest solution that comes in my mind is making your queries lowercase on client side, before sending them to Solr. You should also consider that the ASCIIFoldingFilterFactory is not fired either. Do you really need it?

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

Sidebar

Related Questions

I'm trying to search for a partial word using Solr, but I can't get
I am using solr search engine to query an index for classifieds that match
I'm using Solr as a search frontend to a large corpus of music artist
I have been using solr search and now I am adding pagination via the
I'm currently developping a search engine using Solr for an ecommerce website. So I
I am completely new to java and I am using Solr search server. It
I am using Lucene/Solr for my log search tool. Is there a way I
I'm using Solr for searching, and recently started using faceting to allow users to
We are using solr version 3.5 to search though Tweets, I am using WordDelimiterFactory
Afternoon guys, I'm using a SOLR index for searching through items on my site.

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.