lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James liu" <liuping.ja...@gmail.com>
Subject Re: how to check index's data
Date Sun, 17 Sep 2006 04:39:09 GMT
i just modify addIndex,,,,

if i index data,i can see "updated"...



function addIndex($resultarray) {
$dom_string = '<add>
  <doc>
      <field name="id">111</field>
    <field name="pname">jl</field>
    <field name="pdepart">jldepart</field>
    <field name="pcompany">jlcompany</field>
  </doc>
  <doc>
      <field name="id">112</field>
    <field name="pname">ben</field>
    <field name="pdepart">bendepart</field>
    <field name="pcompany">bencompany</field>
  </doc>
  <doc>
      <field name="id">113</field>
    <field name="pname">gf</field>
    <field name="pdepart">gfdepart</field>
    <field name="pcompany">gfcompany</field>
  </doc>
</add>';
                if ($dom_string) {
                        $ok = $this->sendUpdate($dom_string);
                        echo 'updated<br>';
                } else {
                        echo "Error with xml document";
                        print_r($resultarray);
                }
                return $ok;
        }
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message