Shalin Shekhar Mangar wrote:
I guess most people store it as a simple string "key(separator)value". Is
there something special that you want to do with the values that you need a
custom field implementation?
no..not really.. I guess I could achieve it via payloads as well.. the
whole thing about stuffing 2 fields into the same field irks me thats all.
I've got them set up as 2 separate MV fields at the moment.
On Mon, Jan 12, 2009 at 5:36 AM, Ian Holsman <li...@holsman.net> wrote:
hi.
I don't think this is a FAQ, but it's been bugging me for a while.
I want to store key/value pairs in a single field. for example
<field name="tags" type="keyval" indexed="true" stored="true"
multiValued="true" />
where keyval would be a ID# and the value.
I'm guessing it is as simple as creating my own field class, but I was
wondering if there were any gotchas.
and more importantly why I've never seen the question asked before.
It would seem to me a common use case.