From: Stephanie F. <ste...@gm...> - 2011-05-09 14:55:28
|
No, I did not add custum fields to the Solr schema. Thanks for your help, first problem is solved. I wrote publisherStr in file facets.ini and now it works! One question relative to the file schema.xml. The publischerStr field was defined as "string". Because you wrote the field is defined as "textFacet" I changed it from "string" into "textFacet" (it still works). Was this right, or do I have to copy the line and change it like this? <field name="publisherStr" type="string" indexed="true" stored="false" multiValued="true"/> <field name="publisherStr" type="textFacet" indexed="true" stored="false" multiValued="true"/> I also tried to adopt this to my subject-problem. I changed in my file facets.ini the facet "topic = subject" into "topicStr = subject", but it did not work. Then I looked at schema.xml and recognized, that there is no line "topicStr", so I added it: <field name="topic" type="text" indexed="true" stored="true" multiValued="true"/> <field name="topicStr" type="string" indexed="true" stored="true" multiValued="true"/> <field name="topic_unstemmed" type="textProper" indexed="true" stored="false" multiValued="true"/> <field name="topic_facet" type="textFacet" indexed="true" stored="true" multiValued="true"/> <field name="topic_browse" type="string" indexed="true" stored="false" multiValued="true"/> I also changed the line <copyField source="topic" dest="topic_unstemmed"/> into <copyField source="topic" dest="topicStr"/> It still does not work. Please help again. Thanks a lot! -Stephanie Demian Katz wrote: > > Did you add custom fields to the Solr schema > (solr/biblio/conf/schema.xml)? Depending on the field type used in the > schema, Solr processes different fields differently. What appears to be > happening here is that your facet fields have been processed for full-text > searching, which causes them to behave incorrectly. For the publisher, > there is already a field that you can use for proper faceting -- > publisherStr instead of publisher. If you look in the schema, you will > see that the publisher field is defined as "textProper" (a type used for > full text searching with no stemming) while publisherStr is defined as > "textFacet" (a type used for faceting). There is a copyField directive > near the bottom of the file which ensures that every value processed in > the publisher field is also duplicated in the publisherStr field with > different processing -- this lets you index a string once but then have > access to it for both searching and faceting purposes. You may need to > mimic this configuration if you are using a local custom subject field. > > I hope this helps -- please let me know if you still have questions! > > - Demian > >> -----Original Message----- >> From: Stephanie Funk [mailto:ste...@gm...] >> Sent: Monday, May 09, 2011 7:07 AM >> To: vuf...@li... >> Subject: [VuFind-General] Content of facets with multiple words divided >> >> >> The content of my facets is not displayed correctly. I don't know how >> to >> adjust it in the right way. >> >> For example my facet "Subject". One subject is "Belletristische >> Darstellung". After searching it is displayed in this way (everything >> uncapitalized): >> >> belletristisch (16) >> darstellung (16) >> >> Also the facet "Publisher". The publishers are for example >> "Rowohlt-Taschenbuch-Verlag" and "Ullstein Verlag". >> It is displayed like this: >> >> rowohlt (8) >> ullstein (8) >> rowohlttaschenbuchverlag (1) >> taschenbuch (1) >> verlag (1) >> >> What do I have to adjust, that VuFind does not divide the words and >> shows >> it, like it is? >> >> Many thanks for help! >> -Stephanie >> -- >> View this message in context: http://old.nabble.com/Content-of-facets- >> with-multiple-words-divided-tp31575814p31575814.html >> Sent from the vufind-general mailing list archive at Nabble.com. >> >> >> ----------------------------------------------------------------------- >> ------- >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> VuFind-General mailing list >> VuF...@li... >> https://lists.sourceforge.net/lists/listinfo/vufind-general > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > VuFind-General mailing list > VuF...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-general > > -- View this message in context: http://old.nabble.com/Content-of-facets-with-multiple-words-divided-tp31575814p31577501.html Sent from the vufind-general mailing list archive at Nabble.com. |