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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:24:27+00:00 2026-06-14T11:24:27+00:00

So, I have a Solr instance which processes inputs and queries using StandardTokenizer (as

  • 0

So, I have a Solr instance which processes inputs and queries using StandardTokenizer (as well as ClassicFilterfactory, LowercaseFilterFactory and Stopfilterfactory).

In my index are a number of files with underscore separated names (eg. some_indexed_file.jpg).

I’ve noticed that if I query for some_indexed_file.jpg, I get the file I’m looking for returned correctly.

However, if I alternatively search for some_indexed_file.jp*, (that’s with an asterisk, which I am presuming is acting as a wildcard) which, by my understanding should produce similar results, I get no results.

Any idea what’s going on: I assume I’m misunderstanding something about the way solr processes queries?

Edit: as requested, here are the schema XML configuration entries:

    <fieldType name="default" class="solr.TextField">
        <analyzer type="index">
            <tokenizer class="solr.StandardTokenizerFactory" />
            <filter class="solr.ClassicFilterFactory" />
            <filter class="solr.LowerCaseFilterFactory" />
            <filter class="solr.StopFilterFactory" />
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.StandardTokenizerFactory" />
            <filter class="solr.ClassicFilterFactory" />
            <filter class="solr.LowerCaseFilterFactory" />
            <filter class="solr.StopFilterFactory" />
        </analyzer>
    </fieldType>



   <field name="filename" type="default" multiValued="true" omitNorms="false" termVectors="false"/>
  • 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-14T11:24:28+00:00Added an answer on June 14, 2026 at 11:24 am

    Well, a bit more research has solved the problem:
    The base issue is that Solr doesn’t apply text analysis to wildcard queries.

    This meant that it was searching for an exact match to some_indexed_file.jp*. However, when the filename was indexed, it was tokenised into “some” “indexed” and file.jpg, which does not match this search term.
    Searching for some_indexed_file.jpg was being tokenised properly, and therefore returning the right results.

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

Sidebar

Related Questions

I have an Apache Solr instance deployed in Glassfish and I am using this
I have a Solr instance which contains documents that represent products. Each document has
I have a web app which gets its data from a Solr instance (Tomcat)
I have a simple query to a Solr instance using SolrNet, But for some
I have a SOLR index over several million full text documents. This works very
I have been using solr search and now I am adding pagination via the
I have a number of documents stored in Solr cluster, and want to get
I have stemming enabled in my Solr instance, I had assumed that in order
I configured my Drupal website to work with a Solr instance (using Apache Solr
I have solr query that simply returns the most recent items in the index.

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.