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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:34:55+00:00 2026-05-26T01:34:55+00:00

Hoping for some pointers to speed up some (very) slow solr queries in version

  • 0

Hoping for some pointers to speed up some (very) slow solr queries in version 3.4.0.

I have an index of about 6-million documents. Each document is quite small, and contains two solr.TrieDoubleFields; “start” and “end”.

<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
----
<field name="start" type="double" indexed="true" stored="false" />
<field name="end" type="double" indexed="true" stored="false" />

When querying I need to perform the SQL equivalent of:

WHERE @input BETWEEN Start AND End

To do this I’m writing my query as:

start:[* TO @input] AND end:[@input TO *]

The query succeeds, returning the correct document, but with a QTime of ~4,500; most other queries are well below 100.

What can be modified to improve performance?

  • 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-26T01:34:56+00:00Added an answer on May 26, 2026 at 1:34 am

    I believe that you should try the Function Range (frange) query parser in Solr. Please see the introductory blog post – Ranges Over Functions in Solr 1.4 for more details on how to use the Function Range query parser.
    (Note this should apply to all versions of Solr greater that 1.4 as well)

    So I think something like the following should work…

    `?q=*:*&fq={!frange l=0 u=<@input>}start
        &fq{!frange l=<@input> u=<number larger than greatest value>}end`
    

    I am not sure if you can use wildcards for the upper and lower bounds, probably not…

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

Sidebar

Related Questions

I'm hoping people have some ideas to help solve this problem. I am developing
I am about to make the transition from using standard FILE pointers from some
I'm hoping you can give me some pointers... For some reason when I try
Hoping some learned Rails developers here can recommend an existing Ruby on Rails plugin
I was hoping some of you guru's out there know the answer to this
I am having troubles with jQuery's load function and am hoping for some help.
I was hoping to automate some tasks related to SubVersion, so I got SharpSvn.
i'm hoping to find some add-ons for Visual Studio to address some specific usability
I'm hoping to clear some things up with anonymous delegates and lambda expressions being
I'm hoping there are some fellow doctrine users out there. Here is a simplified

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.