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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:23:23+00:00 2026-05-27T12:23:23+00:00

On a project I’m working on we interact with Solr using SolrNet. We have

  • 0

On a project I’m working on we interact with Solr using SolrNet. We have a custom search component in solr, activated by adding join=true to the query. (I do this in solrnet through the ExtraParams of the CommonQueryOptions).
In the response there is a custom <lst name="joinresult"> after the normal results which I want to parse, and return to the caller.

Now I don’t know where I can cleanly insert a custom ResponseParser in the SolrNet pipeline.

What have I done so far:

  • Created a JoinResult<T> class to hold my custom result
  • Created a JoinQueryResults<T> : SolrQueryResult<T> with a IList<JoinResult<T>> JoinResult property.
  • Created a IJoinResponseParser<T> : ISolrResponseParser<T> interface
  • Created a JoinResponseParser<T> : IJoinResponseParser<T> to parse the custom list result into the JoinQueryResults.JoinResult property.

The next step was to plug all these classes in the right places, and use SolrQueryExecuter<T>.Execute to do the rest of the heavy lifting. But this will always return a SolrQueryResult, not my custom result.

Does anybody have any idea what I need to to support my scenario?

EDIT:
What I’ve got so far is the following:

  • Derive from SolrQueryExecuter<T> and add a ExecuteJoin(q,options) method which returns a JoinQueryResults<T>.

This works, but it doesn’t really feel ‘right’. My Execute method is a copy of the normal Execute method with only one essential change: I replaced new SolrQueryResults with new JoinQueryResults.

Reading the SolrNet code I couldn’t find any other ‘easy’ way, so I’m keeping this approach for now.

  • 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-27T12:23:24+00:00Added an answer on May 27, 2026 at 12:23 pm

    I am not sure if the SolrNet library supports inserting custom response parsers without modifying the source.

    However, I would recommend checking out the source for SolrNet on GitHub and look at how the Faceting or Highlighting results are being parsed out of the SolrQueryResponse. Based on one of these examples you should be able to modify the source to handle the JoinQueryResults you have created. Then ideally, you could contribute this back to the project so that others may benefit as well.

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

Sidebar

Related Questions

Project I'm working on uses jQuery. I have a series of Ajax calls being
A project I'm working on at the moment involves refactoring a C# Com Object
My project is currently using a svn repository which gains several hundred new revisions
The project is ASP.NET 2.0, I have never been able to reproduce this myself,
Project Euler I have recently begun to solve some of the Project Euler riddles.
Project file here if you want to download: http://files.me.com/knyck2/918odc So I am working on
Project is C#. So I have a bunch of multithreaded code that is designed
Project Structure I have a silverlight project SLProj, that references a silverlight class library
Project: Winforms, .NET framework: 3.5 (Visual Studio 2008) My problem is: I have a
project type is MVC2. Let say that i have page1. after success it write

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.