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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:15:54+00:00 2026-06-11T14:15:54+00:00

$search = $solr->search($_GET[‘search’], 0, 100, array(‘fq’ => ‘sm_keywords:topnews’, ‘sort’ => ‘created desc’)); I am

  • 0
$search = $solr->search($_GET['search'], 0, 100, array('fq' => 'sm_keywords:topnews', 'sort' => 'created desc'));   

I am use a php library for Solr and have a field sm_keywords which has comma separated keywords.

Examples:

topnews,golf,tennis

beach,sports,volleyball

I want to do a query where I can match a keyword such as “sports” anywhere in the string. Currently it will only match at the beginning. I tried doing keyword, but I got a 400 error. How can this be accomplished?

  • 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-11T14:15:55+00:00Added an answer on June 11, 2026 at 2:15 pm

    What I would suggest you to do is to index every keyword as a separate term, probably even as a different value of the same multivalued field. That way your filter will work without the need of any wildcard.

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

Sidebar

Related Questions

I use ajax-solr as a front-end for Solr search. In order to get the
I'm new to java, but i need to use solr as full text search
I want to use solr to create an autosuggestion dropdown for a search field
I'm looking to get an instance of Solr search running on my localhost. The
I have implemented solr search for my rails application. I have indexed the fields
I am using solr search engine to query an index for classifieds that match
I am setting up a Solr Search Engine that will index multiple languages. I
I have been using solr search and now I am adding pagination via the
I'm trying to improve an existing solr search which uses the StandardRequestHandler. I'd like
I am completely new to java and I am using Solr search server. It

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.