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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:38:30+00:00 2026-06-08T02:38:30+00:00

I am using Apache Solr for indexing and searching with SolrJ in java/GWT. When

  • 0

I am using Apache Solr for indexing and searching with SolrJ in java/GWT.

When I search for specific word or text then in the result I want to highlight that search text i.e. the search text is displayed in highlighted manner in the result…
help me how can I implement this in my application….if anyone knows any solution…

Thanking in advance…

  • 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-08T02:38:32+00:00Added an answer on June 8, 2026 at 2:38 am

    You can use Solr Highlight for this. By default hightlight component is enabled in solrconfig.xml. You can configure fragmenters inside the highlightComponent section in solrconfig.xml file.

    You can also set highlighting parameters inside requestHandler such as :

       <!-- Highlighting defaults -->
       <str name="hl">on</str>
       <str name="hl.fl">text features name</str>
       <str name="f.name.hl.fragsize">0</str>
       <str name="f.name.hl.alternateField">name</str>
    

    Then you can query solr as follows, which will list the highlighted keywords inside tags.

    http://localhost:8983/solr/select?q=keyword&hl=true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using SolrJ, the Java client for Apache Solr server, at my
I am using Apache Solr for my search , using this i am indexing
I am using Apache Solr, Say I search for B I want Solr to
I am working on Solr in my application. I am using apache-solr-solrj-1.4.0.jar . When
I have tried search using Apache SOLR. I have done with the PHP client
I am using apache solr search integration on my Drupal 6 website: govoluntourism.com .
I am using Apache Solr for search. I use this to provide personal user-based
I'm trying to create a custom search interface for Apache Solr using Drupal ,
I'm using drupal 7, with apache solr... I want to print a content field
I'm using apache solr 3.1 with drupal How can boost result on top which

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.