RE: indexing key value pair into lucene solr index

2011-10-24 Thread Jaeger, Jay - DOT
Maybe put them in a single string field (or any other field type that is not analyzed -- certainly not text) using some character separator that will connect them, but won't confuse the Solr query parser? So maybe you start out with key value pairs of Key1 value1 Key2 value2 Key3 value3 Prepro

Re: indexing key value pair into lucene solr index

2011-10-24 Thread Ken Krugler
On Oct 24, 2011, at 1:41pm, jame vaalet wrote: > hi, > in my use case i have list of key value pairs in each document object, if i > index them as separate index fields then in the result doc object i will get > two arrays corresponding to my keys and values. The problem i face here is > that the

Re: indexing key value pair into lucene solr index

2011-10-24 Thread karsten-solr
blem. So please tell more about your use-case and somebody will have an answer without "program by your own". Best regards Karsten Original-Nachricht > Datum: Mon, 24 Oct 2011 17:53:26 +0530 > Von: jame vaalet > An: solr-user@lucene.apache.org > Betr

Re: indexing key value pair into lucene solr index

2011-10-24 Thread jame vaalet
thanks karsten. can we preserve order within index field ? if yes, i can index them separately and map them using their order. On 24 October 2011 17:32, wrote: > Hi Jame, > > you can > - generate one token for each pair (key, value) --> key_value > - insert a gap between each pair and us phras

Re: indexing key value pair into lucene solr index

2011-10-24 Thread karsten-solr
Hi Jame, you can - generate one token for each pair (key, value) --> key_value - insert a gap between each pair and us phrase queries - use key as field-name (if you have a restricted set of keys) - wait for joins in Solr 4.0 (http://wiki.apache.org/solr/Join) - use position or payloads to co