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

  • Home
  • SEARCH
  • 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 4026342
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:57:30+00:00 2026-05-20T10:57:30+00:00

I am using Apache Solr for search. I use this to provide personal user-based

  • 0

I am using Apache Solr for search. I use this to provide personal user-based search. i.e. each user has a separate physical Lucene Index. So for 10 users, I have 10 separate physical indexes on disk.

To support searches on these indexes, I am planning to use Solr MultiCore Feature. With the various articles I have been reading regarding this, it looks like this would work.

Where I am actually not sure is, when a solr searcher gets a query, instead of sending the query to all the multiple-cores, how do I funnel the query to that core which has that particular user’s index connected to? Is this a config change or do I need to do code level changes?

i.e. I want to send the query to only one solr-core (based on userid). Is this even possible?

UPDATE: So according to one of the solutons I can add multi-cores in the solrconfig.xml i.e. at the time of starting solr I’ll need to mention the cores (or in my case the users). So now, if I want to add a new user’s index, I’ll probably need to stop solr, edit its config, add that users core & start solr again. Is there any way to dynamically add cores to a running solr instance?

  • 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-20T10:57:31+00:00Added an answer on May 20, 2026 at 10:57 am

    Solr cores are essentially multiple indices run in the same context on an application server. You can think of it as installing 1 war-file for each user. Each core is separated by a name, hence you must yourself keep track of which url is valid for which user.

    E.g.,

    http://host.com/solr/usercore1/select?q=test
    http://host.com/solr/usercore2/select?q=test

    Which is based on the config solr.xml:

    <solr persistent="true" sharedLib="lib">
     <cores adminPath="/admin/cores">
      <core name="usercore1" instanceDir="usercore1" />
      <core name="usercore2" instanceDir="usercore1" />
     </cores>
    </solr>
    

    …instead of sending the query to all the multiple-cores…

    This approach is called sharding and is based on distributed searching, which is a completely separate feature which focuses on splitting one users index over multiple solr instances.

    [EDIT]
    One approach to creating new cores is by solrj which provides a routine CoreAdmin.createCore(..). You could also do this using a manual HTTP request: /cores?action=CREATE&name=usercore3…

    Solr can also reload its config dynamically, if you had a script in place which edited the cores config these changes should be picked up too.

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

Sidebar

Related Questions

I'm trying to create a custom search interface for Apache Solr using Drupal ,
I have tried search using Apache SOLR. I have done with the PHP client
I am working on Solr in my application. I am using apache-solr-solrj-1.4.0.jar . When
I am using the Spring RestTemplate to make calls to a Apache Solr index.
I'm considering the use of Apache solr for indexing data in a new project.
Let's say I have document indexed with Apache Solr that contains this string: Klüft
i am using solr 1.4.1 for building a distributed search engine, but i dont
How can I search something using Solr? I have setup the Solr server in
are you aware of the best companies which provide apache solr AS A SERVICE?
Using Apache's commons-httpclient for Java, what's the best way to add query parameters to

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.