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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:58:29+00:00 2026-05-13T13:58:29+00:00

I have a classifieds website, and users may for example search for cars. When

  • 0

I have a classifieds website, and users may for example search for cars.

When searching for a car, there are a number of endings in their names as you all probably know.
For example lets say Bmw 330ci (ending beeing ‘ci’), but there is also Bmw 330i, or Bmw 330di etc etc.

How can I make SOLR “understand” this, so if users search for 330 SOLR will return results containing 330ci/330i/330di etc.

Also, it shoul NOT return results if a user specifically inputs Bmw 330ci, then it should ONLY return Bmw 330ci and NOT Bmw 330i/di etc…

I am new to SOLR, but I am starting to understand how to get it to work. Need a little guidance on this one though!

How would you have done it?

Thanks

  • 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-13T13:58:29+00:00Added an answer on May 13, 2026 at 1:58 pm

    You’d probably want to analyze the field using the WordDelimiterFilterFactory, set up to split on numeric transitions. That will allow a query of 330 to match 330anything.

    I believe that, by default, when you also do this at query time, it will create a phrase query from 330di -> “330 di”, which should only match if both parts are present in the index.
    See http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters for more details.

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

Sidebar

Related Questions

I have a classifieds website where users may insert ads. There is a insert-ad
I have a classifieds website where users may search ads. I wonder if I
I have a classifieds website where users may sell/buy just about anything... My issue
I have a classifieds website, and when users post a new classified, they may
I have a classifieds website, where everybody may put ads of their products. For
I have a classifieds website, where users can search for items. The search should
I have a classifieds website. The users first have to specify their 'area of
I have a classified ad website. Users may put classifieds in, and each category
I have a classifieds website. Users may put ads, edit ads, view ads etc.
I have a classifieds website, and users can search ads. The results are displayed

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.