How to Use ParallelReader

2007-06-13 Thread Liu_Andy2
Hi, There is one class named org.apache.lucene.index.ParallelReader, as its javadoc stated: An IndexReader which reads multiple, parallel indexes. Each index added must have the same number of documents, but typically each contains different fields. Each document contains the union of the field

RE: Understanding QueryParserTokenManager and QueryParser classes

2007-06-20 Thread Liu_Andy2
These two classes are generated by QueryParser.jj. Perhaps you should first look at how to use JavaCC and modify QueryParser.jj to meet your requirement. Andy -Original Message- From: Mahdi Rahimi [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 4:14 PM To: java-user@lucene.apach

RE: zero termfreq for some search strings with special characters

2007-06-20 Thread Liu_Andy2
You are right! "emp-id" will be separated to two terms CONTENT:"emp" CONTENT:"id" by standard tokenizer for indexing and searching. But direct writing term (CONTENT:"emp-id") will not. Andy -Original Message- From: SK R [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 5:24 PM

RE: TermVector

2007-06-24 Thread Liu_Andy2
Suggest you use lucene 2.1 or above Andy -Original Message- From: Lee Li Bin [mailto:[EMAIL PROTECTED] Sent: Monday, June 25, 2007 5:14 AM To: java-user@lucene.apache.org Subject: TermVector Hi, May I know how do I store TermVector? When I set the last parameter to true, isn't i

RE: Lucene as primary object storage

2007-06-26 Thread Liu_Andy2
Perhaps this reference http://www.mail-archive.com/[EMAIL PROTECTED]/msg062 60.html will give you some help. It's about Hibernate Lucene integration. Andy -Original Message- From: karl wettin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 8:17 AM To: java-user@lucene.apache.org

RE: Standard Tokenizer Question

2007-06-26 Thread Liu_Andy2
Token.termText() perhaps is the same as st.getToken(y).image Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Paul Sondag Sent: Wednesday, June 27, 2007 9:32 AM To: java-user@lucene.apache.org Subject: Standard Tokenizer Question Hey, I Think th

RE: Standard Tokenizer Question

2007-06-26 Thread Liu_Andy2
In fact,it should be: Standardtoken.image=Token.termText, Standardtoken.beginColumn= Token.startOffset, Standardtoken.endColumn =Token.endOffset, You can reference StandardTokenizer.java, about line 73. Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

RE: Update documents

2007-06-27 Thread Liu_Andy2
Perhaps it is not possible if you have written the document to index. Andy -Original Message- From: WATHELET Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 3:46 PM To: java-user@lucene.apache.org Subject: Update documents High, Is-it possible to update a document's fiel

RE: Update documents

2007-06-27 Thread Liu_Andy2
In effect, IndexWriter's updateDocument() will first delete the document containing specific term, then add the document. It just wrap delete&add as a thread safe method. Andy -Original Message- From: Doron Cohen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 3:58 PM To: java-u

RE: unused tmp fdt files in index

2007-07-09 Thread Liu_Andy2
You can use Luke to open your index. In the Files tab, if some files are shown as deletable, it is should be safe to delete these files. Please backup your data before testing. Andy -Original Message- From: Harini Raghavan [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:29 PM

RE: Cannot get Field.Text to work

2007-07-10 Thread Liu_Andy2
You can reference org.apache.lucene.document.Field class. It should be similar as: ontactDocument.add(new Field("name", contact.getName(),Field.Store.YES, Field.Index.TOKENIZED)); Andy -Original Message- From: Amit [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 6:00 PM To: java-

RE: Question regarding ignore case?

2007-07-20 Thread Liu_Andy2
When index, you can add LowerCaseFilter to your analyzer, or just use some analyzer already done lowercase, such as StandardAnalyzer,SimpleAnalyzer Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of li hao cho Sent: Friday, July 20, 2007 2:52 PM To: jav

RE: What replaced org.apache.lucene.document.Field.Text?

2007-07-24 Thread Liu_Andy2
Please reference How do I get code written for Lucene 1.4.x to work with Lucene 2.x? http://wiki.apache.org/lucene-java/LuceneFAQ#head-86d479476c63a2579e867b 75d4faa9664ef6cf4d Andy -Original Message- From: Lindsey Hess [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 12:31 PM To