Re: two structures in solr

2012-04-13 Thread Chris Hostetter
: I need to store *two big structures* in SOLR: projects and contractors. : Contractors will search for available projects and project owners will : search for contractors who would do it for them. http://wiki.apache.org/solr/MultipleIndexes : that *I want to have two structures*. I guess runnin

Re: two structures in solr

2012-04-13 Thread Erick Erickson
bq: Is that right? I don't know, does it work ? You'll probably want an additional field for unique id (just named "id" in the example) that should be disjoint between your types. Best Erick On Fri, Apr 13, 2012 at 3:41 AM, tkoomzaaskz wrote: > Thank you very much Erick for your reply! > > So s

Re: two structures in solr

2012-04-13 Thread tkoomzaaskz
Thank you very much Erick for your reply! So should it go something like the following: http://lucene.472066.n3.nabble.com/file/n3907393/solr_index.png sorry for an ugly drawing ;) In this example, the index will have 13 columns: 6 for project, 6 for contractor and one to define the type. Is th

Re: two structures in solr

2012-04-12 Thread Erick Erickson
You have to take off your DB hat when using Solr ... There is no problem at all having documents in the same index that are of different types. There is no penalty for field definitions that aren't used. That is, you can easily have two different types of documents in the same index. It's all abo