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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:32:58+00:00 2026-05-26T01:32:58+00:00

I have a products table on my database, and a table with features of

  • 0

I have a products table on my database, and a table with features of this products. The features table have 3 columns: id, type and value. Id is a foreign key from products.
A example of data on my tables:
Table Products:

ID | Description |

01 Computer A

02 Car

03 Computer B

Table Features:

ID | Type | Value |

01 Processor Phenom X3

01 Memory 2GB

01 HDD 500GB

02 Color Blue

02 Mark Ford

03 Processor Phenom X3

03 Memory 3GB

I want the best way to index it, so, a example, when someone searches for “computer”, the faceting shows:

Phenom X3(2)

Memory 2GB(1)

Memory 3GB(1)

HDD 500GB(1)

And so on, related with the query string. If I make a query with the string “processor”, it will list Phenom X3(1) only if this products (with “processor” on description) have a feature like Processor: Phenom X3. There’s a lot of product types, so we can’t create static colums to all features and pass it to Solr…
I hope my question is clear, thanks in advance!

  • 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-26T01:32:58+00:00Added an answer on May 26, 2026 at 1:32 am

    Use data import handler to index the data @ http://wiki.apache.org/solr/DataImportHandler

    You can define the products table as main entity and features as sub entity. So that the product with features is indexed as a single document.

    For indexing –
    Define description field as indexed true
    As you want facet on type and value, you can define a new field type_value with type string and concat the type and value field in dataconfig.xml
    type_value will be a multivalued field.

    For searching –
    Make the product description field searchable e.g. q=description:computers
    You can configure this in the solrconfig.xml with proper weightage

    Define the features field as a facet field and facet.field=type_value

    I hope this gives a fair idea.

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

Sidebar

Related Questions

I have a long description field in a products table with a data type:
On my database I have among other tables, products . Products table contains the
I have a MySQL database with a fairly large table where the products are.
I have a products table with a column of type SET (called especialidad), with
We have a mySQL database table for products . We are utilizing a cache
I Have a form to add a product into a database table called 'Products'
My database has a products table. This contains a column called layers . That
I have a Products table in a SQL Server database and I am having
I have two tables that I'm querying from. In one table, there are fields
I have a database that stores products. The two biggest tables are my products

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.