From: Hugo A. <ha...@or...> - 2013-09-18 16:09:40
|
Hi We are trying to add two new fields in vufind, everything seems to go smoothly, but the records with some value in those fields are not indexed. Vufind 2.1.1 *marc.properties* programa = 502bg this field is a name, just one value per records like *" International Master in Finance<http://eada.koha.es/cgi-bin/koha/opac-search.pl?q=Proj_curs%3DInternational%20Master%20in%20Finance> - (PAW1)"* 502$b International Master in Finance<http://eada.koha.es/cgi-bin/koha/opac-search.pl?q=Proj_curs%3DInternational%20Master%20in%20Finance> - $502$b (PAW1) *We hace added to vufind schema* /usr/local/vufind2/solr/biblio/conf/schema.xml <field name="programa" type="text" indexed="true" stored="true" multiValued="true"/> *We have addes the function in * /usr/local/vufind2/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php public function getPrograma() { return isset($this->fields['programa']) ? $this->fields['programa'] : ''; } and we have published into *core.phtml (we have copied from a repetable field, but I do not think this is the problem"* <? $programa = $this->driver->getPrograma(); if (!empty($programa)): ?> <tr valign="top"> <th><?=$this->transEsc('Programa')?>: </th> <td><?=$this->escapeHtml($programa)?></td> </tr> <? endif; ?> *We have clear the index, and reindex again...* * * INFO [main] (MarcImporter.java:491) - Calling commit (with optimize set to false) INFO [main] (MarcImporter.java:503) - Done with the commit, closing Solr INFO [main] (MarcImporter.java:506) - Setting Solr closed flag INFO [main] (MarcImporter.java:627) - Finished indexing in 1:57.00 INFO [main] (MarcImporter.java:636) - Indexed 15224 at a rate of about 129.0 per sec INFO [main] (MarcImporter.java:637) - Deleted 0 records INFO [Thread-1] (MarcImporter.java:566) - Starting Shutdown hook INFO [Thread-1] (MarcImporter.java:585) - Finished Shutdown hook Any suggestion about what is wrong? the worat issue is that it worked, but somebody changed something and it brokes.. however we have added successfully the other local field... On the other hand we wish to create some search type on these two new fields... may you confirm If we are right with the following? ###################################### We have two chances...using searchspecs.yaml 1. include the name of field in one of the multuple search fields like AllFields: 2. add one new field with our own fields, and weightening them like this Series: DismaxFields: - series^100 - series2 QueryFields: series: - [onephrase, 500] - [and, 200] - [or, 100] series2: - [onephrase, 50] - [and, 50] - [or, ~] have we forgotten something? -- *Hugo Agud - Orex Digital * *www.orex.es* * * Director Mossen Jaume Rafanell, 21 · 08338 Premià de Dalt - Tel: 93 539 40 70 ha...@or... · http://www.orex.es/ No imprima este mensaje a no ser que sea necesario. Una tonelada de papel implica la tala de 15 árboles y el consumo de 250.000 litros de agua. Aviso de confidencialidad Este mensaje contiene información que puede ser CONFIDENCIAL y/o de USO RESTRINGIDO. Si usted no es el receptor deseado del mensaje (ni está autorizado a recibirlo por el remitente), no está autorizado a copiar, reenviar o divulgar el mensaje o su contenido. Si ha recibido este mensaje por error, por favor, notifíquenoslo inmediatamente y bórrelo de su sistema. |