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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:22:37+00:00 2026-05-16T08:22:37+00:00

I have a problem in searching solr using solrnet client.. problem is when query

  • 0

I have a problem in searching solr using solrnet client.. problem is when query with highlighting option on it gives me the count of highlights less than the actual results but when i search directly on solr admin page it gives same number of results in highlights is equal to number of rows specified. can i get the same number of results in highlights as number of rows specified in query?

Here is how i use highlighting in Solrnet

QueryOptions options = new QueryOptions();

options.Rows = 20;
options.Start = 0;

HighlightingParameters hp = new HighlightingParameters();
List<string> fields = new List<string>();
fields.Add("Contents");
hp.Fields = fields;
options.Highlight = hp;

ISolrQueryResults<Document> results = solrWorker.Query(query, options);\\query is same as \\i commented before

and after this
results.count!=results.Highlights.Count

results.count is exactly equal to options.Rows that is 20 but results.Highlights.Count is less than 20.

also one thing DocID is uniqueKey in schema.xml

i am using Solr 1.4.1 and SolrNet-0.2.3-net-2.0 and i have downloaded this version of Solrnet from http://code.google.com/p/solrnet/downloads/detail?name=SolrNet-0.2.3-net-2.0.zip&can=2&q=

And the problem i m facing is i have queried “+Contents:risk +(DocID:100)”, now let this query matches 3 results now all these three results are shown but highlighting is done against only one of these results but when i see the admin page there all three results are shown as well as all three are highlighted.

  • 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-16T08:22:38+00:00Added an answer on May 16, 2026 at 8:22 am

    It was a bug in SolrNet 0.2.3, fixed in 0.3.0b1.

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

Sidebar

Related Questions

I have a problem with SOLR searching. When i`am searching query: dog* everything is
i have problem in searching concat values, is there any ways using mysql query
I have problem with my query on C, I’m using the oci8 driver. This
I'm using the iTunes API and I have a problem. I'm searching in den
I have a problem searching through amazon web servise using PHP in my CodeIgniter.
i have one problem controlling checkbox, i'm reading, and searching about the topic but
i have a little problem, i'm searching, but i can't found what i need,
I have tried searching over the internet about this problem but not able to
I am searching for a solution for my problem for days and I have
I tried searching and didn't find anything that fixed my problem. I have a

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.