lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muneeb <muneeba...@hotmail.com>
Subject indexing key/value field type
Date Tue, 09 Mar 2010 14:49:09 GMT

Hi,

I have built an index of several million documents with all primitive type
fields, either String, text or int. I have another multivalued field to
index now for each document which is a list of tags as a hashmap, so:

tags<key,value> , where key is String and value is Int.
key is a given tag and value is a count of how many users used this tag for
a given document.

How can I index and store a key/value type of field? such that one can
search on the values as well as keys of this field. 

I have looked at FAQs, where one mailing-list suggests using the dynamic
field type such as: 

<dynamicField name="tags_*" type="string" indexed="true" stored="true"
omitNorms="true" />

but how would we search on the dynamic field names?

I guess the final option I have is to make my custom field type and analyzer
to deal with this... Any suggestions on how i should i go about this??

Thanks very much in advance.

-Ali
-- 
View this message in context: http://old.nabble.com/indexing-key-value-field-type-tp27836710p27836710.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message