I will give it a go!

thank you

best

Silvio

On 05/08/2013 03:07 AM, Chris Hostetter wrote:

: I am about to index identfier fields containing blanks (shelfmarks) eg. G
: 23/60 12
: The field type is set to Solr.string. To get the exact matching hit (the doc
: with shelfmark mentioned above) the user must quote the search term. Is there
: a way to omit the quotes?

whitespace has to be quoted when using the lucene QParser because it's a
semanticly significant character that means "end boolean query clause"

if you want to search for a literal string w/o needing any escaping, use
the term QParser...

        {!term f=yourFieldName}G 23/60 12

Of course, if you are putting this in a URL (ie: testing in a browser) it
still needs to be URL escaped...

        /select?q={!term+f=yourFieldName}G+23/60+12


-Hoss


--
Silvio Hermann
Friedrich-Schiller-Universität Jena
Thüringer Universitäts- und Landesbibliothek
Bibliotheksplatz 2
07743 Jena
Phone: +49 3641 940019
FAX:   +49 3641 940022

http://www.historische-bestaende.de

Reply via email to