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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:11:06+00:00 2026-06-04T21:11:06+00:00

I am using Solr to handle my text search needs. Now MLT (more like

  • 0

I am using Solr to handle my text search needs. Now MLT (more like this) is enabled on f1. f2 is my date field. I want MLT results on f1 but I want them only from a subset of my DB i.e. results from after a certain date (a range query on f2). How can I customize MLT such that I can add this range query on f2 (a non MLT field)?

I am new to Solr as well as Java. Any help however basic will be really appreciated. 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-06-04T21:11:08+00:00Added an answer on June 4, 2026 at 9:11 pm

    According to https://wiki.apache.org/solr/MoreLikeThisHandler, the MoreLikeThisHandler supports CommonQueryParameters. This means you should be able to add an fq (filter query) parameter to your search, and filter on f2 being between something and something else. For example:

    fq=f2:["2011-03-21" TO "2012-03-21"]
    

    This says, find all the results from MLT, then add this filtering query.

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

Sidebar

Related Questions

I have been using solr search and now I am adding pagination via the
I'm using Solr and I want to facet over a field group. Since group
I need to customize Solr highlighting prefix and suffix like this: <span class=highlight>text</span> instead
hey i am using solr search in my mvc.net application. Now i am doing
I am building a faceted search with Lucene.NET, not using Solr. I want to
I'm using Solr and Solr:Cell plugin to index and search rich text documents and
I want to using solr for search on articles I have 3 table: Group
I'm using Solr and I would like to add a field last_update in the
I am using Apache Solr, Say I search for B I want Solr to
I am using solr search engine to query an index for classifieds that match

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.