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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:58:06+00:00 2026-05-30T17:58:06+00:00

i am new to Apache SOLR..n i am learning how to create documents in

  • 0

i am new to Apache SOLR..n i am learning how to create documents in SOLR..


My scenario : In my RDBMS database, i have the following scenario :

A “cars” table “jc_cars” : id, name, extra

An “attributes” table “jc_attributes” : id, attributeName

A Many-to_many table between Attribute and Cars :
“jc_car_attributes” : carID, attributeID , value

An “article” table : jc_articles : id, title, description

A Many-to-many table between Article and Cars :
“jc_car_articles” : articleID, carID

Now what I want is :

  • Searching All the Cars with their Attributes (like Price)
  • Searching All the Articles related to this Car

Actually I want results when i make the following the query :

  • Cars with price less than 400000 : Should give Car Details and
    related Articles
  • Hyundai Accent : Should give Car Details and related Articles
  • and So on…..

So how should i create the Corresponding document and Schema.xml..??

  • 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-30T17:58:08+00:00Added an answer on May 30, 2026 at 5:58 pm

    Solr has a flat index, so you can’t really have a list of relations with multiple values (e.g. a relation with both a name and a value, like your attributes).

    For the articles, you can provide the IDs of related articles in a multi-valued field, then do a separate lookup for these either (a) in your database (b) in another solr core.

    For the attributes, if you have a fixed list of attributes you can join these to cars and read each attribute into its own field. If you do not have a fixed list of attributes, you’ll also have to resort to a separate core, doing essentially the reverse of what you would do for articles; do a lookup in the attributes core then lookup the specific cars from your cars core.

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

Sidebar

Related Questions

I have the following field definition in my SOlr Schema name=DvdReleaseDate type=date stored=true required=false
I'm really new to apache mod_rewrite module. I have a page called http://abc in
I'm Posting the following to the Solr Server: <add> <doc> <field name=uniqueid>5453543</field> <field name=modifieddate>2008-12-03T15:49:00Z</field>
I'm considering the use of Apache solr for indexing data in a new project.
I'm new to Apache Solr, and I want to use it for indexing pdf
I'm new to Apache Solr. Even after reading the documentation part, I'm finding it
I'm new to PHP. I installed XAMPP and have Apache running. I created helloworld.php
I'm brand new to Apache Ivy and have posted a few other Ivy-related questions
I'm fairly new to Apache Camel, but have to say that I love it
I have the following code, which is simply searching the Solr Server. SolrServer server

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.