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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:03:55+00:00 2026-06-10T18:03:55+00:00

THe partial matching on my search is not working correctly. When I type in

  • 0

THe partial matching on my search is not working correctly. When I type in “Dublin Ireland” into my search then it correctly returns all the results in Dublin, Ireland. However, when I type “County Dublin Ireland” then it doesn’t return any.

I’ve set up an EdgeNGramFilter in my schmea.xml like so:

<filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="10"/>

And I’m doing a fulltext search on the sunspot end on location:

search_results = Events.solr_search do
  fulltext location do
    fields(:address)
  end
end

How come I’m getting no results even though 2 out of the 3 terms match?

  • 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-10T18:03:56+00:00Added an answer on June 10, 2026 at 6:03 pm

    By default, Sunspot uses the DisMax Query Parser, and supports a minimum_match method within the fulltext block.

    search_results = Events.solr_search do
      fulltext location do
        fields :address
        minimum_match 2
      end
    end
    

    See also:

    • Stack Overflow – Solr Sunspot minimum_match
    • Stack Overflow – Rails 3 Sunspot Fulltext Search Usage
    • Solr Wiki – DisMax query parser
    • Websolr Blog – How do I query with boolean logic using Sunspot?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to get searching working on Heroku using partial search The following query generates
I want to provide for partial matching, so I am tacking on * to
consider the following code, which represents an attempt to implement partial matching. the intended
def partial(template, *args) options = args.extract_options! options.merge!(:layout => false) if collection = options.delete(:collection) then
Is it possible in PHP Regex to do partial matching so that if I
For some addresses that I attempt to geocode, google returns inappropriately inconclusive results. The
I am currently working on a live search and I need to be able
http://jsfiddle.net/nicktheandroid/QhL2M/ (type bye into the input box) Purpose of the script: Each li contains
Good morning, Does anyone know about efficient algorithms for partial string matching? For example,
i want partial matching of string in java e.g String s1 = method; String

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.