Re: searching for string with a blank

2008-09-30 Thread Erick Erickson
Sure, you can use the same analyzer at query time, or an analyzer that does what you want. See KeywordAnalyzer for instance (although that one doesn't lower case, so...). Or just make your own analyzer, see the Synonym example in Lucene In Action. Or be really simple, and just (say) lowercase your

Re: searching for string with a blank

2008-09-30 Thread David Massart
Thanks Erick. I see, the problem is that I use some fields tokenized and other untokenized but that all the queries are parsed using my analyzer. Is this correct? I suppose that removing the blanks from learningResourceType before adding it as an untokenized field helps (provided that I do the s

Re: searching for string with a blank

2008-09-30 Thread Erick Erickson
What *analyzer* are you using for your queries? Have Luke explain your queries and I suspect you'll see your problem. Which if you're using StandardAnalyzer is probably that 'case study' will look like (lrt:case lrt:study). Note that the implied operator is OR unless you've changed it. But these ar