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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:04:12+00:00 2026-05-17T01:04:12+00:00

Using SolrNet for querying & faceting. I have a combination of int, tdate and

  • 0

Using SolrNet for querying & faceting. I have a combination of int, tdate and string fields I would like to facet on. However I am unable to mix SolrFacetFieldQuery and SolrFacetQuery (for ranges) and SolrFacetDateQuery (for date ranges) in the same query. I get an error “no best type found for implicitly typed array”. How should this best be handled? Clearly don’t want to send multiple queries for getting the other facets.

I know this is something silly, but been vexing me….

      results = solr.Query(qry
      , new QueryOptions
      {
          Rows = 250,
          Facet = new FacetParameters
          {
              Queries = new[] 
                        {
                            new SolrFacetFieldQuery("Registry"),
                            new SolrFacetFieldQuery("Status"),
                            new SolrFacetFieldQuery("Type"),
                            //this is where it throws up "no best type found for implicty typed array"
                            new SolrFacetQuery(lessThan25),

                        }
          }

      });
  • 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-17T01:04:12+00:00Added an answer on May 17, 2026 at 1:04 am

    C# can’t infer the common base type, so you have to be explicit about it when creating the array:

    Queries = new ISolrFacetQuery[] {
       new SolrFacetFieldQuery("Registry"),
       new SolrFacetFieldQuery("Status"),
       new SolrFacetFieldQuery("Type"),
       new SolrFacetQuery(lessThan25),
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Solr/SolrNet and would like to use the MoreLikeThisHandler to provide my
I am using solrnet. I have a title and Description fields. I need to
I have an IIS server which serves a search page using SolrNet. The search
Using Rails 3.2.0 with haml and sass: I Would like to link an external
Is it possible to get clustering in Solr querying via SolrNet? using built-in algos.
I'm using SolrNet and have a problem where the score field is conflicting with
Using Jenkins or Hudson I would like to create a pipeline of builds with
I have been working on making a Search using Solrnet which is working the
Working with Solr for ASP.net project using Solrnet library. While querying with Faceted field
On a project I'm working on we interact with Solr using SolrNet. We have

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.