Apostrophes in fields

2007-01-15 Thread Nick Jenkin
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 She

Re: Apostrophes in fields

2007-01-15 Thread Jeff Rodenburg
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

Re: Apostrophes in fields

2007-01-15 Thread Bertrand Delacretaz
On 1/16/07, Jeff Rodenburg <[EMAIL PROTECTED]> wrote: Nick - this depends on the analyzer used to index the field as well as the analyzer used in your search query Note that the Solr "analysis" page, in the admin interface, allows you to see exactly how your field's content is converted for

Re: Apostrophes in fields

2007-01-16 Thread Nick Jenkin
Hi Jeff, Bertrand THanks for your help, The analyzers I am using are the same as in the example schema.xml Author field: analysis result: http://nickjenkin.com/misc/solr.jpg It appears to be matching author:"Shelley Ohara" but when I do this search no results are returned, searches like author:

Re: Apostrophes in fields

2007-01-16 Thread Mike Klaas
On 1/16/07, Nick Jenkin <[EMAIL PROTECTED]> wrote: Hi Jeff, Bertrand THanks for your help, The analyzers I am using are the same as in the example schema.xml Author field: analysis result: http://nickjenkin.com/misc/solr.jpg It appears to be matching author:"Shelley Ohara" but when I do this s

Re: Apostrophes in fields

2007-01-16 Thread Yonik Seeley
On 1/16/07, Mike Klaas <[EMAIL PROTECTED]> wrote: > It appears to be matching author:"Shelley Ohara" but when I do this > search no results are returned, searches like author:"Shelley O hara", > author:"Shelley O'hara" work as expected. Any ideas? This problem is why some sloppiness is recommen

Re: Apostrophes in fields

2007-01-16 Thread Chris Hostetter
: This problem is why some sloppiness is recommended when dealing with : WordDelimiterFilter. particularly when using the generate___Parts="true" options Nick: if you want simpler matching like this, you might want to consider simplifying your definition of "text" ... if you look at the "textTig

Re: Apostrophes in fields

2007-01-16 Thread Nick Jenkin
Using the fuzzy searching fixed the problem - I will have a play with the analzyers and see if I can get it working nicely. Thanks again, much apreciated. On 1/17/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: : This problem is why some sloppiness is recommended when dealing with : WordDelimit