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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:50:03+00:00 2026-05-26T07:50:03+00:00

i am new to solr. I have created two separate entities which are not

  • 0

i am new to solr. I have created two separate entities which are not interrelated.

In db-data-config.xml

<entity name="vtab" query="select pid as id, pname as name from ptab order by name asc">
    <field column="panchayat_id" name="panchayat_id" />
    <field column="name" name="name" />
</entity>
<entity name="ptab" query="select vid as id, vname as name from vtab order by name asc">
    <field column="id" name="vid" />
    <field column="name" name="name" />
</entity>

In scheme.xml

<fields>
    <field name="id" type="string" indexed="true" stored="true"/>
<field name="name" type="text" indexed="true" stored="true" />
</fields>
<uniqueKey>id</uniqueKey>
<defaultSearchField>name</defaultSearchField>

The index is created successfully with this configuration. I want to search by name. If i provide name in query, i want it from any of the table where record is found. With above configuration, i am getting records from only vtab. No records are being searched in ptab. Please guide me where i am going wrong.

  • 1 1 Answer
  • 2 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-26T07:50:04+00:00Added an answer on May 26, 2026 at 7:50 am

    you have named the vtab entity as ptab and vice versa.
    Can you add to the entity named vtab and check they are indexed properly.
    Are the ids unique? If the ids are duplicate they would override each other.
    Ideally, It should search across both

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

Sidebar

Related Questions

I'm using solrj to index data, I have created some new field in schema.xml,
I am new to solr. I have developed a an website which uses solr
I have an existing solr core which has data in it regarding info on
I'm new to Solr. Using Solr 1.4.1 I have a schema.xml that have this
I am new in SOLR. I have a problem. I put data into SOLR
ok, I'm totally new to SOLR and Lucene, but have got Solr running out-of-the-box
I have a question. SolrphpClient is not working with multicore. I have two cores
I have a Solr schema that has a url field: <fieldType name=url class=solr.TextField positionIncrementGap=100>
I have the following code, which is simply searching the Solr Server. SolrServer server
I am using SOLR 3.5.0..!! I have made two Indexes : Cars and Vendors

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.