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

  • Home
  • SEARCH
  • 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 9115481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:26:35+00:00 2026-06-17T04:26:35+00:00

For my solr implementation I want the query to return the words with and

  • 0

For my solr implementation I want the query to return the words with and withhout diacriticts regardless if you search with or without diacritics.

To give an example

The search word is “çest” – Solr returns: ‘cest‘, ‘çest‘ and ‘çest ca‘
The search word is “cest” – Solr returns: ‘cest‘, ‘çest‘ and ‘çest ca‘

Currenty the first works. When I search “çest” it returns both cest and çest. However when I search “cest” it returns only ‘cest’

This is how it looks in my schema:

<fieldType name="text_special_search" class="solr.TextField" positionIncrementGap="100">
    <analyzer>
        <filter class="solr.ASCIIFoldingFilterFactory"/>
        <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="\W+" replacement="-"/>
        <tokenizer class="solr.LowerCaseTokenizerFactory"/>
    </analyzer>
</fieldType>

Is there a way to let it work both ways?

  • 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-06-17T04:26:36+00:00Added an answer on June 17, 2026 at 4:26 am

    If you want either matches, you don’t need the solr.PatternReplaceCharFilterFactory.
    This would remove the special characters before they are passed to the ASCII filter.

    You can use :-

    <fieldType name="text_special_search" class="solr.TextField" positionIncrementGap="100">
        <analyzer>
            <tokenizer class="solr.LowerCaseTokenizerFactory"/>
            <filter class="solr.ASCIIFoldingFilterFactory"/>
        </analyzer>
    </fieldType>
    

    You can also use a WhiteSpace Tokenizer to have tokens and use Lower Case as a Filter.

    Also, remember the order of execution in an Analyzer is as follows, irespective of the order you have :-

    • CharFilters
    • Tokenizer
    • Filters
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to search for threads in my mysql database with Solr. But i
solr sort,i want Specify a particular document at the first for example: Results :
i am using solr search on asp.net when i search first time it give
A Solr query problem here. For example, a group checking query: There’s a string
I want to using solr for search on articles I have 3 table: Group
I have a multicore implementation of solr. I want to configure DIH / core.
in solr query search, a search q=*%3A*&fq=grand_cat_str%3ABeklædning Solr will read the fq as: <str
Solr is a standalone enterprise search server with a REST-like API. You put documents
We're implementing solr with ecommerce application. The main objective is faster search and better
I have implemented solr search for my rails application. I have indexed the fields

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.