You seem to know what you want the words to map to, so index the map. Have one field for the word, one field for the mapped value, and at query time, search the words and return the mapped field. If it is comma separated, so be it and split it up in your code post search. Otherwise, same as Wunder, in my many years in search this is an odd request Anria
Sent from my Samsung smartphone on AT&T -------- Original message -------- Subject: Re: custom field tutorial From: Walter Underwood <wun...@wunderwood.org> To: solr-user@lucene.apache.org CC: What are you trying to do? This seems really odd. I've been working in search for fifteen years and I've never heard this request. You could always return all the fields to the client and ignore the ones you don't want. wunder On Jun 7, 2013, at 8:24 PM, geeky2 wrote: > can someone point me to a "custom field" tutorial. > > i checked the wiki and this list - but still a little hazy on how i would do > this. > > essentially - when the user issues a query, i want my class to interrogate a > string field (containing several codes - example boo, baz, bar) > > and return a single integer field that maps to the string field (containing > the code). > > example: > > boo=1 > baz=2 > bar=3 > > thx > mark >