You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Anto Binish Kaspar <an...@ec.is> on 2008/11/07 10:18:57 UTC

Search based on price range

Does anyone have solution for my problem?

I am doing index for Products. Each product can have multiple price (like Government, Club users, Public and etc). This multiple price is not limited. One product can have n number of price, depends on clients need.  Now I need to do index for all the products and search the products based price range. I am not getting any idea, how to perform search based on the price range.

Regards,
Anto Binish Kaspar
Acting Team Lead
EC Software


RE: Search based on price range

Posted by Dave Searle <da...@magicalia.com>.
You could have a multivalued field for Price and also store minPrice and maxPrice fields against the product document. You could then search between the min and max price and present the user with the relevant price categories that fall within that range.

-----Original Message-----
From: Anto Binish Kaspar [mailto:antobinish@ec.is]
Sent: 07 November 2008 09:19
To: solr-user@lucene.apache.org
Subject: Search based on price range

Does anyone have solution for my problem?

I am doing index for Products. Each product can have multiple price (like Government, Club users, Public and etc). This multiple price is not limited. One product can have n number of price, depends on clients need.  Now I need to do index for all the products and search the products based price range. I am not getting any idea, how to perform search based on the price range.

Regards,
Anto Binish Kaspar
Acting Team Lead
EC Software






__________ Information from ESET NOD32 Antivirus, version of virus signature database 3593 (20081107) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature database 3593 (20081107) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Special interest communities are Magicalia's mission in life.  Magicalia publishes specialist websites 
and magazine titles for people who have a passion for their hobby, sport or area of interest.

For further information, please call 0207 861 9854 or see our corporate website at www.magicalia.com

Magicalia Ltd, Caxton House, 2 Farringdon Road, London, EC1M 3HN 
Registered: England & Wales, Registered Number: 3828584, VAT Number: 744 4983 00

This email and any files transmitted with it are confidential and intended solely for the use of the individual 
or entity to which they are addressed.  If you have received this email in error please reply to this email and 
then delete it.  Please note that any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of Magicalia. The recipient should check this email and any 
attachments for the presence of viruses.  Magicalia accepts no liability for any damage caused by any virus 
transmitted by this email. Magicalia may regularly and randomly monitor outgoing and incoming emails and 
other telecommunications on its email and telecommunications systems. By replying to this email you give 
your consent to such monitoring. Copyright in this e-mail and any attachments created by Magicalia Ltd
belongs to Magicalia Ltd.