Re: [Lucene 2.0]How to recover index?

2006-10-03 Thread zhu jiang
Anyone can help me??? 2006/10/3, zhu jiang <[EMAIL PROTECTED]>: Hi all, In some situation, index files may throw read past EOF exception so that the index cannot be used any more. I wonder how to recover the index files in such situation? -- Thanks, Jiang -- Thanks, Jiang

[Lucene 2.0]How to recover index?

2006-10-02 Thread zhu jiang
Hi all, In some situation, index files may throw read past EOF exception so that the index cannot be used any more. I wonder how to recover the index files in such situation? -- Thanks, Jiang

Re: [Lucene2.0]How to not highlight keywords in some fields?

2006-09-26 Thread zhu jiang
Thx a lot! 2006/9/26, markharw00d <[EMAIL PROTECTED]>: Pass a field name to the QueryScorer constructor. See "testFieldSpecificHighlighting" method in the Junit test for the highlighter for an example. Cheers Mark zhu jiang wrote: > Hi all, > >For example, if I

[Lucene2.0]How to not highlight keywords in some fields?

2006-09-25 Thread zhu jiang
Hi all, For example, if I have a document with two fields text and num like this: text:foo bar 1 num:1 When users query "foo", I changed the query to "text:foo AND num:1", both "foo" and "1" in the text field will be highlighted. I don't wanna the word "1" in