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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:13:52+00:00 2026-05-22T17:13:52+00:00

I’m currently looking at developing a solr application to index products on our e-commerce

  • 0

I’m currently looking at developing a solr application to index products on our e-commerce website.

Some example fields in the schema are:

  • ProductID
  • ProductName
  • Description
  • Price
  • Categories (multi-value)
  • Attributes

Attributes are a list of key-value pairs.
For example:

Type = Rose
Position = Full Sun
Position = Shade
Colour = Red

I am going to store the fields, so that my pages can be generated from a search result.

How is it best to represent these?

I was thinking of maybe having some dynamic fields for indexing:
attribute_* for example (attribute_position)
And then “attribute” for stored value (For returning, for displaying) – storing multiple fields
The value of an “attribute” field could be (for example) Position|Full Sun – then let the client handle the displaying?

Are there any better ways of doing this?

As a footnote- I will be using Solrnet as a client for querying (probably not relevant)

  • 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-22T17:13:53+00:00Added an answer on May 22, 2026 at 5:13 pm

    First, I would not recommend storing your entire document in your search engine. The only thing you should store in Solr is those things that you wish to search on. Yes, it supports storing more, however, taking advantage of this can cause issues down the road with index size, master/slave replication time, etc. Ideally, the only thing in Solr is things you wish to search/sort on and a document ID that is unique enough to fetch document data with from another source that is optimized for storing …. documents.

    However, if you decide to ignore this advice, then you can easily store your name value pairs in a single field. If your name value pairs have a limited character set, you can easily concatenate the name value pairs into a single string. Then, parse them on the way out when you are forming your web page for display. There’s no need to come up with a more complex schema to support this. Multiple fields for storing these will only increase your index overhead, which buys you nothing.

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

Sidebar

Related Questions

I'm currently developing an ajax application and I'm looking for a feature that lets
I'm currently developing an application that happens to require some file preprocessing before actually
Our business is currently looking at developing iPhone versions of applications we build for
I am currently looking into developing an application in C#. The application will need
I am currently looking into developing some WebParts for Microsoft Sharepoint 2010. I have
I'm pretty new to Objective-C. I'm developing a Cocoa application. Currently I'm looking for
I'm currently developing the foundation of a an application, and looking for ways to
I´m looking for a unit tests framework for database development. I´m currently developing for
We are currently looking to adopt some type of standard developer framework and have
I'm currently looking at indexing an ASP website from Sharepoint and I need 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.