Re: help with a schema design problem

2010-07-26 Thread Chantal Ackermann
> > > document > > > > > 1 Pramod is a Client and not a Supplier. > > > > Would it? I would expect it to give you nothing. > > > > -Kal > > > > > > > > -Original Message- > > From: Geert-Jan Brits [mailto:gbr...@gmail.com] > >

Re: help with a schema design problem

2010-07-23 Thread Chris Hostetter
: > Is there any way in solr to say p_value[someIndex]="pramod" : And p_type[someIndex]="client". : No, I'm 99% sure there is not. it's possibly in code, by utilizing positions and FieldMaskingSpanQuery... http://lucene.apache.org/java/2_9_0/api/all/org/apache/lucene/search/spans/FieldMaskingSpan

Re: help with a schema design problem

2010-07-23 Thread Geert-Jan Brits
give you nothing. > > -Kal > > > > -Original Message- > From: Geert-Jan Brits [mailto:gbr...@gmail.com] > Sent: Friday, July 23, 2010 5:05 PM > To: solr-user@lucene.apache.org > Subject: Re: help with a schema design problem > > > Is there any way in solr

RE: help with a schema design problem

2010-07-23 Thread Nagelberg, Kallin
ld expect it to give you nothing. -Kal -Original Message- From: Geert-Jan Brits [mailto:gbr...@gmail.com] Sent: Friday, July 23, 2010 5:05 PM To: solr-user@lucene.apache.org Subject: Re: help with a schema design problem > Is there any way in solr to say p_value[someIndex]="

Re: help with a schema design problem

2010-07-23 Thread Geert-Jan Brits
> Is there any way in solr to say p_value[someIndex]="pramod" And p_type[someIndex]="client". No, I'm 99% sure there is not. > One way would be to define a single field in the schema as p_value_type = "client pramod" i.e. combine the value from both the field and store it in a single field. yep, f

Re: help with a schema design problem

2010-07-23 Thread Pramod Goyal
In my case the document id is the unique key( each row is not a unique document ) . So a single document has multiple Party Value and Party Type. Hence i need to define both Party value and Party type as mutli-valued. Is there any way in solr to say p_value[someIndex]="pramod" And p_type[someIn

Re: help with a schema design problem

2010-07-23 Thread Geert-Jan Brits
With the usecase you specified it should work to just index each "Row" as you described in your initial post to be a seperate document. This way p_value and p_type all get singlevalued and you get a correct combination of p_value and p_type. However, this may not go so well with other use-cases yo

Re: help with a schema design problem

2010-07-23 Thread Pramod Goyal
I want to do that. But if i understand correctly in solr it would store the field like this: p_value: "Pramod" "Raj" p_type: "Client" "Supplier" When i search p_value:"Pramod" AND p_type:"Supplier" it would give me result as document 1. Which is incorrect, since in document 1 Pramod is a Clien

RE: help with a schema design problem

2010-07-23 Thread Nagelberg, Kallin
I think you just want something like: p_value:"Pramod" AND p_type:"Supplier" no? -Kallin Nagelberg -Original Message- From: Pramod Goyal [mailto:pramod.go...@gmail.com] Sent: Friday, July 23, 2010 2:17 PM To: solr-user@lucene.apache.org Subject: help with a schema design problem Hi, L