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

searching for string with a blank

2008-09-30 Thread David Massart
Hi all, Here is a new newbee question. I'm adding to a lucene index, documents containing a field lrt created as follows: doc.add( new Field( "lrt", learningResourceType .toLowerCase(), Field.Store.NO, Field.Index.UN_TOKENIZED ) ) ; where possible values for learningResourceType are: applic

Re: Caused by: java.io.IOException: read past EOF on Slave

2008-09-30 Thread Marcelo Ochoa
Michael: Yep, previous implementation have his own buffer to reduce BLOB IO overriding Input/OutputBufferStream base classes. Now Input/Output stream classes use BufferStream implementation and only implement flushInternal and setSize methods among others minimun changes :) Best regards, Marc

Re: Caused by: java.io.IOException: read past EOF on Slave

2008-09-30 Thread Michael McCandless
I'm glad to hear this! But: what was the root cause of the problems? Why didn't your previous Input/Output implementations, which worked with Lucene 2.3, work win 2.4? It's kinda spooky. Mike Marcelo Ochoa wrote: Michael: I have OJVMDirectory working with 2.4rc2 code base. I have re

Re: Caused by: java.io.IOException: read past EOF on Slave

2008-09-30 Thread Marcelo Ochoa
Michael: I have OJVMDirectory working with 2.4rc2 code base. I have refactored Output and Input streams classes according to latest implementation of Buffered base classes and works OK. All of my tests suites runs OK also the bug in the 11g JITs compiler is not reproducible. I'll test this