Re: Solr Indexing Patterns

2011-06-09 Thread Judioo
Very informative links and statement Jonathan. thank you. On 6 June 2011 20:55, Jonathan Rochkind wrote: > This is a start, for many common best practices: > > http://wiki.apache.org/solr/SolrRelevancyFAQ > > Many of the questions in there have an answer that involves de-normalizing. > As an e

Re: Solr Indexing Patterns

2011-06-06 Thread Jonathan Rochkind
This is a start, for many common best practices: http://wiki.apache.org/solr/SolrRelevancyFAQ Many of the questions in there have an answer that involves de-normalizing. As an example. It may be that even if your specific problem isn't in there, I myself anyway found reading through there ga

Re: Solr Indexing Patterns

2011-06-06 Thread Judioo
I do think that Solr would be better served if there was a *best practice section *of the site. Looking at the majority of emails to this list they resolve around "how do I do X?". Seems like tutorials with real world examples would serve Solr no end of good. I still do not have an example of th

Re: Solr Indexing Patterns

2011-06-06 Thread Judioo
Thanks On 6 June 2011 19:32, Erick Erickson wrote: > #Everybody# (including me) who has any RDBMS background > doesn't want to flatten data, but that's usually the way to go in > Solr. > > Part of whether it's a good idea or not depends on how big the index > gets, and unfortunately the only way

Re: Solr Indexing Patterns

2011-06-06 Thread Erick Erickson
#Everybody# (including me) who has any RDBMS background doesn't want to flatten data, but that's usually the way to go in Solr. Part of whether it's a good idea or not depends on how big the index gets, and unfortunately the only way to figure that out is to test. But that's the first approach I'

Re: Solr Indexing Patterns

2011-06-06 Thread Judioo
On 5 June 2011 14:42, Erick Erickson wrote: > See: http://wiki.apache.org/solr/SchemaXml > > By adding ' "multiValued="true" ' to the field, you can add > the same field multiple times in a doc, something like > > > > value1 > value2 > > > > I can't see how that would work as one would need

Re: Solr Indexing Patterns

2011-06-05 Thread Erick Erickson
See: http://wiki.apache.org/solr/SchemaXml By adding ' "multiValued="true" ' to the field, you can add the same field multiple times in a doc, something like value1 value2 But there's no real ability in Solr to store "sub documents", so you'd have to get creative in how you encoded the

Re: Solr Indexing Patterns

2011-06-03 Thread Judioo
Hi, Discounts can change daily. Also there can be a lot of them (over time and in a given time period ). Could you give an example of what you mean buy multi-valuing the field. Thanks On 3 June 2011 14:29, Erick Erickson wrote: > How often are the discounts changed? Because you can simply > re

Re: Solr Indexing Patterns

2011-06-03 Thread Erick Erickson
How often are the discounts changed? Because you can simply re-index the book information with a multiValued "discounts" field and get something similar to your example (&wt=json) Best Erick On Fri, Jun 3, 2011 at 8:38 AM, Judioo wrote: > What is the "best practice" method to index the foll

Solr Indexing Patterns

2011-06-03 Thread Judioo
What is the "best practice" method to index the following in Solr: I'm attempting to use solr for a book store site. Each book will have a price but on occasions this will be discounted. The discounted price exists for a defined time period but there may be many discount periods. Each discount wi