probably u can paste your data-config.xml with the queries etc --Noble
On Fri, Oct 24, 2008 at 1:33 PM, Nick80 <[EMAIL PROTECTED]> wrote: > > Hi Paul, > > thanks for the answer but unfortunately it doesn't work. I have the > following: > > <entity name="campaign"> > <field name="id" column="id" /> > <field name="campaign_name" column="campaign_name" /> > > <entity name="banner"> > <field name="banner_type" column="banner_type" /> > > <entity name="size"> > <field name="size" column="size" /> > </entity> > </entity> > </entity> > > I have defined banner_type and size as: > > <field name="banner_type" type="string" indexed="true" stored="true" > multiValued="true" omitNorms="true" termVectors="true" /> > > Now when I do a search with Solr, I get: > > <result name="response" numFound="1" start="0"> > <doc> > <str name="id">1</str> > <str name="campaign_name">Campaign Name</str> > > <arr name="banner_type"> > <str>flash</str> > <str>gif</str> > </arr> > > <arr name="size"> > <str>50x50</str> > <str>100x100</str> > <str>50x50</str> > <str>100x100</str> > </arr> > </doc> > </result> > > While I was expecting that the size tags were inside the banner_type tags, > something like: > > <arr name="banner_type"> > <str>flash > <arr name="size"> > <str>50x50</str> > <str>100x100</str> > </arr> > </str> > <str>gif > <arr name="size"> > <str>50x50</str> > <str>100x100</str> > </arr> > </str> > </arr> > > Am I doing something wrong or is it just not possible? Because with the > output it generates now I cann't accurately find a campaign that has a flash > banner of size 50x50 for example, because the size 50x50 could as well be > from a gif banner. With the nested structure, I think it would be possible. > At least if Solr can search this type of structure. Any tips are welcome. > Thanks. > > Kind regards, > > Nick > -- > View this message in context: > http://www.nabble.com/How-to-search-a-DataImportHandler-solr-index-tp20120698p20145974.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- --Noble Paul