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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:33:09+00:00 2026-06-15T15:33:09+00:00

I get search request in the form of a java object out of which

  • 0

I get search request in the form of a java object out of which i construct a SOLR query object and query the index.

For example assume user wants to do an exact search on a field called title. He would send a query of the form

  Field = "title", value = "Algebra", Operator = "EQUALS"

When i see the operator as “EQUALS”, construct a solr query like this

  title:Algebra

For a wild card or stemmed search, request would be something like this,

  Field = "title", value = "Algebra", Operator = "LIKE"

As the operator is “LIKE” solr query I am constructing is,

  title:*Algebra*

The problem here is for wild card and other stemmed options to work title field is defined as text_general and text(through copy field option) in my schema.xml, so when i use operator “:” it does stemmed search and retrieves me results that have Algebra word in the title field where as output I am expecting is just the records with title as Algebra.

I know one solution where i need to change title field as “string” in configuration file. But this would effect my stemmed search and wild card search options.

So basically i want a field to support both stemmed search (and all other text_general field options) as well as exact match based on the operator i pass to it.
Is it even possible. If so pl guide me how to accomplish the same.

  • 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-15T15:33:11+00:00Added an answer on June 15, 2026 at 3:33 pm

    You’ll have to have two fields, one for the stemmed / processed version, and one for the clean string version. Use <copyField> to make sure that both gets populated when indexing.

    While there are no “global” conventions for this, I’d suggest adopting a naming convention for the field name depending on it’s processing. If you have fieldname as string, you have fieldname_stemmed as the text field (or fieldname_text), if you see Operator = ‘LIKE’, append _stemmed or _text to the fieldname. You can also do it the other way around, have the regular fieldname be stemmed and processed, while you have fieldname_clean as the exact version.

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

Sidebar

Related Questions

I have a search page which uses a simple ajax request to get new
I have this view function: def search(request): if request.method == 'GET': form = SearchForm(request.GET)
Search for good JAVA lib for playing with POST-GET requests - Is there any
I have a form, as such <form action=search.php method=get id=search> <input type=text name=first_name/> <input
Site: http://na.leagueoflegends.com/ladders/solo-5x5 Search for a a player (example: Jaiybe) You get redirected (in this
i got this script to get Friendly URL with get request form from here...
Hi I have a search results page which returns queries form the database using
I have a search form in Django. When the user click in the submit
I am using google api to get search result for certain queries in JSON
<?php ini_set('display_errors', 0); $search = $_GET ['search']; mysql_connect(localhost, root, gokul); mysql_select_db(search123); $query = mysql_query(SELECT

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.