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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:00:03+00:00 2026-06-17T13:00:03+00:00

I have basically the same problem as discussed here: Solr wildcard query with whitespace

  • 0

I have basically the same problem as discussed here: Solr wildcard query with whitespace, but this question was not answered.

I’m using a wildcard in a filter query on a field called “brand.”

I’m having trouble when the brand name has whitespace in it. For instance, filtering the brand “Lexington” works fine when I say fq={!tag=brand}brand:Lexing*n. A multi-word brand like “Athentic Models” causes problems, however. It seems double quotes must be included around the name.

When there are “s, *s don’t do anything, ie brand:”Athentic Mode*” or brand:”Lexingt*”, won’t match anything. Without double quotes, it does work to say brand:Authen*, with no quotes and no space, and that will match Authentic Models. But once whitespace is included in the brand name, it seems to only consider the string up to the first space when matching.

The brand field is of type

<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>

which is not whitespace tokenized, to my understanding. It is populated with a copyField from a whitespace tokenized field, though.

Is there something I can do to stop Solr from tokenizing the filter query without using double quotes?

  • 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-17T13:00:05+00:00Added an answer on June 17, 2026 at 1:00 pm

    Just like Rob said in his answer, I’ve posted an answer on my own on the question he linked to.

    All you need to do is escape the space in your query (as in, customer_name:Pop *Tart –> customer_name:Pop\ *Tart).
    From my experience, this method works no matter where you place the wildcard, which is backed up by how Solr claims that something like:

    customer_name:Pop\ *Tart
    

    Is parsed as:

    customer_name:Pop *Tart
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have basically the same problem outlined in this question, however I am using
I basically have the same question as this guy .. The example in the
Basically, I have the same question as this one , which unfortunately never got
I basically have the same problem in this questions: Flash Video still playing in
I'm basically encountering the same problem as the poster in this question . My
I most likely have the same problem as in this question: Weird Chrome prototype/jQuery
I basically have the exact same problem as here: http://stackoverflow.com/questions/2416155/issue-in-executing-spring-web-project-in-eclipse-on-tomcat-server but the fix for
I'm seeing basically the same issue described here I have a table that starts
I have the exact same problem as this guy , since no one has
I seem to have exactly the same problem as this person: http://forums.adobe.com/thread/618752 He also

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.