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

The Archive Base Latest Questions

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

I already have some documents indexed using more NumericField s per document. Now I

  • 0

I already have some documents indexed using more NumericFields per document.
Now I want to search the documents that have all fields from <-3,+3> interval e.g.:

query: n1=7,n2=10,n3=12 – and the search should return all documents that have numbers from intervals: n1=<4,10>,n2=<7,13>,n3=<9,15>.

Question: what analyzer do I need, how to write a query, what searcher to use?

It’s an assignment, so I can’t use any other tools that are built for searching in ranges, have to use Lucene.

Thanks

  • 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-27T03:30:23+00:00Added an answer on May 27, 2026 at 3:30 am

    Is does not require any analzer or searcher,
    just need to ensure building the correct query like :-

    Example 1: Or (meaning match either one of the conditions)

    n1:(4 10) n2:(7 13) n3:(9 15)
    

    Example 2: And (meaning all three parenthesis must matched)

    +n1:(4 10) +n2:(7 13) +n3:(9 15)
    

    Example 3: Range (your question sounds like a range search)

    n1:[4 TO 10] n2:[7 TO 13] n3:[9 TO 15]
    

    Example 4: And range

    +n1:[4 TO 10] +n2:[7 TO 13] +n3:[9 TO 15]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have already implemented some AJAX pagination in my Rails app by using the
I already have an enterprise Java EE application. I want expose some of the
I want the user to be able to have some data already in the
I have already search for some time over the net on how to create
I have an applet that allows users to sign documents using their personal certificates.
I have some PDF files generated based on some XSL-FO documents and I now
This is uni assignment and I have already done some stuff. Please go to
I've been into this problem for a while already, and have asked some questions
I have a data table which already has some values, plus it is getting
I have an ASP.NET project which has already some custom fields in it's web.config

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.