You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jörg Agatz <jo...@googlemail.com> on 2010/06/02 15:50:57 UTC

PHP output at a multiValued AND dynamicField

Hallo Users...

I have a Problem...
In my SolR, i have a lot of multiValued, dynamicFields and now i must print
ther Fields in php..

But i dont know how...


In schema.xml:

  <field name="P_VIP_KUNDE_ID" type="string" indexed="true" stored="true"/>
  <dynamicField name="P_VIP_KUNDE_*"  type="text"    indexed="true"
stored="true" multiValued="true"/>
  <field name="P_VIP_ADR_ID" type="string" indexed="true" stored="true"/>
  <dynamicField name="P_VIP_ADR_*"  type="text"    indexed="true"
stored="true" multiValued="true"/>
  <field name="P_VIP_PERSON_ID" type="string" indexed="true" stored="true"/>
  <dynamicField name="P_VIP_PERSON_*"  type="text"    indexed="true"
stored="true" multiValued="true"/>
  <field name="P_VIP_INFO_ID" type="string" indexed="true" stored="true"/>
  <field name="P_VIP_INFO_TEXT" type="text" indexed="true" stored="true"/>

output from Solr:

<doc>
<str name="P_FILE_ITEMS_FILENAME">A201005311740560002.xml</str>
<str name="P_FILE_ITEMS_GESPERRT">NO</str>
<str name="P_FILE_ITEMS_ID">A201005311740560002</str>
<str name="P_FILE_ITEMS_LAST_CHANGE">2010-05-31 17:40:56</str>
−
<str name="P_FILE_ITEMS_PFAD">
Q:\DatenIBP\AADMS\telli_vip\xml\A201005311740560002.xml
</str>
<arr name="P_VIP_ADR_LAND">
<str>D</str>
</arr>
<arr name="P_VIP_ADR_LANDTEXT">
<str/>
</arr>
<arr name="P_VIP_ADR_ORT">
<str>Leichlingen</str>
</arr>
<arr name="P_VIP_ADR_PLZ">
<str>42799</str>
</arr>
<arr name="P_VIP_ADR_POSTFACH">
<str/>
</arr>
<arr name="P_VIP_ADR_POSTFACHOR">
<str/>
</arr>
<arr name="P_VIP_ADR_POSTFACHPL">
<str/>
</arr>
<arr name="P_VIP_ADR_STRASSE">
<str>Schlo� Eicherhof</str>
</arr>
<str name="P_VIP_ELEMENT_CAT">ADRESS</str>
<str name="P_VIP_KUNDE_ID">KYETG201005311740560002</str>
</doc>

I don now ha is the name of the Fields, so i dont know how i get the name to
"printr" it in PHP

Maby someone of you has a answer of the problem?

King

Re: PHP output at a multiValued AND dynamicField

Posted by Michael Kuhlmann <mi...@zalando.de>.
Am 02.06.2010 16:42, schrieb Jörg Agatz:
> i don't understand what you mean!
> 
Then you should ask more precisely.

Re: PHP output at a multiValued AND dynamicField

Posted by Jörg Agatz <jo...@googlemail.com>.
i don't understand what you mean!

Re: PHP output at a multiValued AND dynamicField

Posted by Michael Kuhlmann <mi...@zalando.de>.
Am 02.06.2010 16:15, schrieb Jörg Agatz:
> yes i done.. but i dont know how i get the information out of the big
> Array...

They're simply the keys of a single response array.

Re: PHP output at a multiValued AND dynamicField

Posted by Jörg Agatz <jo...@googlemail.com>.
yes i done.. but i dont know how i get the information out of the big
Array...

Al fields like P_VIP_ADR_*

Re: PHP output at a multiValued AND dynamicField

Posted by Erik Hatcher <er...@gmail.com>.
You probably should try the php or phps response writer - it'll likely  
make your PHP integration easier.

	Erik

On Jun 2, 2010, at 9:50 AM, Jörg Agatz wrote:

> Hallo Users...
>
> I have a Problem...
> In my SolR, i have a lot of multiValued, dynamicFields and now i  
> must print
> ther Fields in php..
>
> But i dont know how...
>
>
> In schema.xml:
>
>  <field name="P_VIP_KUNDE_ID" type="string" indexed="true"  
> stored="true"/>
>  <dynamicField name="P_VIP_KUNDE_*"  type="text"    indexed="true"
> stored="true" multiValued="true"/>
>  <field name="P_VIP_ADR_ID" type="string" indexed="true"  
> stored="true"/>
>  <dynamicField name="P_VIP_ADR_*"  type="text"    indexed="true"
> stored="true" multiValued="true"/>
>  <field name="P_VIP_PERSON_ID" type="string" indexed="true"  
> stored="true"/>
>  <dynamicField name="P_VIP_PERSON_*"  type="text"    indexed="true"
> stored="true" multiValued="true"/>
>  <field name="P_VIP_INFO_ID" type="string" indexed="true"  
> stored="true"/>
>  <field name="P_VIP_INFO_TEXT" type="text" indexed="true"  
> stored="true"/>
>
> output from Solr:
>
> <doc>
> <str name="P_FILE_ITEMS_FILENAME">A201005311740560002.xml</str>
> <str name="P_FILE_ITEMS_GESPERRT">NO</str>
> <str name="P_FILE_ITEMS_ID">A201005311740560002</str>
> <str name="P_FILE_ITEMS_LAST_CHANGE">2010-05-31 17:40:56</str>
> −
> <str name="P_FILE_ITEMS_PFAD">
> Q:\DatenIBP\AADMS\telli_vip\xml\A201005311740560002.xml
> </str>
> <arr name="P_VIP_ADR_LAND">
> <str>D</str>
> </arr>
> <arr name="P_VIP_ADR_LANDTEXT">
> <str/>
> </arr>
> <arr name="P_VIP_ADR_ORT">
> <str>Leichlingen</str>
> </arr>
> <arr name="P_VIP_ADR_PLZ">
> <str>42799</str>
> </arr>
> <arr name="P_VIP_ADR_POSTFACH">
> <str/>
> </arr>
> <arr name="P_VIP_ADR_POSTFACHOR">
> <str/>
> </arr>
> <arr name="P_VIP_ADR_POSTFACHPL">
> <str/>
> </arr>
> <arr name="P_VIP_ADR_STRASSE">
> <str>Schlo� Eicherhof</str>
> </arr>
> <str name="P_VIP_ELEMENT_CAT">ADRESS</str>
> <str name="P_VIP_KUNDE_ID">KYETG201005311740560002</str>
> </doc>
>
> I don now ha is the name of the Fields, so i dont know how i get the  
> name to
> "printr" it in PHP
>
> Maby someone of you has a answer of the problem?
>
> King