Nick - this depends on the analyzer used to index the field as well as the analyzer used in your search query. This gets handled in solr with the fieldtype and requesthandler. Referencing the sample schema.xml off the wiki site, I would start with fieldtype="text" and go from there. If it doesn't address apostrophes (it splits on non-alpha chars) you can easily extend it through configuration to reference the necessary filter factory class.
Hope this helps. -- j On 1/15/07, Nick Jenkin <[EMAIL PROTECTED]> wrote:
Hi This is probably more of a lucene question, but: I have an author field, If I query author:"Shelley Ohara" - no results are returned If I query author:"Shelley O'hara" - many results are returned, Is it possible, to get solr to ignore apostrophes in queries like the one above? e.g. doc <doc> <arr name="author"><str>Shelley O'Hara</str></arr> <bool name="available">true</bool> <str name="description">long descirption</str> <str name="ean">9780764559747</str> <str name="format">Paperback</str> <str name="publisher">IDGP</str> <str name="title">Kierkegaard Within Your Grasp</str> <str name="year">2004</str> </doc> Thanks -- - Nick