List Info

Thread: Can you parse the contents of a field to populate other fields?




Can you parse the contents of a field to populate other fields?
country flaguser name
United States
2007-11-05 15:22:18
Hello - 

I'm wondering if this is possible... I am trying to model a
hierarchy of
facets, and have a field in my xml (Category) that
structured like this:
facet1::facet2::facet3...  At index time, I would like to
split this
field on the :: to populate several other fields I have
defined in my
schema (Category_1, Category_2, Category_3).  Is this
possible?  If so,
what is the best way to do this?

 

Thanks!

Kristen

Re: Can you parse the contents of a field to populate other fields?
user name
2007-11-05 15:51:43
On 11/5/07, Kristen Roth <kristen.rothmolecular.com> wrote:
> I'm wondering if this is possible... I am trying to
model a hierarchy of
> facets, and have a field in my xml (Category) that
structured like this:
> facet1::facet2::facet3...  At index time, I would like
to split this
> field on the :: to populate several other fields I have
defined in my
> schema (Category_1, Category_2, Category_3).  Is this
possible?  If so,
> what is the best way to do this?

I think a PatternTokenizer might be able to do this...
set up a copyField from Category to all the other category
fields, and
then set up a different regex on each field to pull out the
right
part.

-Yonik

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )