hacioguz / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

Field boost not sent when field having a special char in the name #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<?php
require_once 'Apache/Solr/Service.php';

$doc = new Apache_Solr_Document();
$doc->addField('field<1', 'a');
$doc->setFieldBoost('field<1', 2.5);

$client = new Apache_Solr_Service();
$client->addDocument($doc);

// Field field<1 has no boost
sending: <doc><field name="field&lt;1">a</field></doc>
expected: <doc><field name="field&lt;1" boost="2.5">a</field></doc>

Original issue reported on code.google.com by julien.b...@gmail.com on 26 Apr 2012 at 4:22

Attachments:

GoogleCodeExporter commented 9 years ago
Great catch! Committed in r62

Original comment by donovan....@gmail.com on 26 Apr 2012 at 5:49