Seraching in Keyword Field

2004-09-29 Thread Rosen Marinov
Hi all, I have a Keyword field in my Lucene docs. And i am tring to execure some queries on this field. 1. MyKeywordField:(["ABC" TO "ABC"]) - this query is OK and returns expecting result 2. MyKeywordField:(ABC) - but this returning nothing I am using SimpleAnalyzer - is the problem in analy

change directory

2004-05-03 Thread Rosen Marinov
Hi all, I have a good working index about 3 GB in one directory for example in c:/index1 now i want to change the computer and directory for example to d:/index2(is this possible ???) and when i copy it to the new pc and directory on IndeaxReader(indexpath) i get java.io.IOExce

Re: query

2004-04-21 Thread Rosen Marinov
> Short answer: it depends. > > Questions for you to answer: > What field type and analyzer did you use during indexing? What > analyzer used with QueryParser? What does the generated Query.toString > return? in both cases SimpleAnalyzer QueryParser.parse("\"abc\"") throws an exception and i

query

2004-04-21 Thread Rosen Marinov
Does it query work: "my name is \"Rosen\""?

escaping characters

2004-04-21 Thread Rosen Marinov
Hi all, I am usung folowing query to find exact match document with title: Abramovich says Chelsea win showed "Russian character" . In both cases with/without escaping " character, and all others form http://jakarta.apache.org/lucene/docs/queryparsersyntax.html i recieve these exceptions: CASE

Search in all fields

2004-03-16 Thread Rosen Marinov
In QueryParser.parse method I must give which is the default field. Does this means ttah non-adressed queris are executed only over this field? The main question is: How I can search in all fields in all documents in the index? Note that I don't know field names, there can be thousands field nam

Re: Delete document don't work

2002-11-10 Thread Rosen Marinov
I forget to say that my Field is not Keyword it is UnIndexed field and i want to know how can i delete document from index with this UnUndexed field? - Original Message - From: "Rosen Marinov" <[EMAIL PROTECTED]> To: "Lucene Users List" <[EMAIL PROTECTE

Delete document don't work

2002-11-10 Thread Rosen Marinov
Hello, I have the problem with deleting documents from index. please see the my java code, i have in my index document with field "ID" and value "12345", but this code don't delete the document from my index. Please tell me possible reason? I haven't other opening readers, writers or searches o

Re: Too many open files?

2002-07-23 Thread Rosen Marinov
just close your Searcher after finishing work - Original Message - From: "Hang Li" <[EMAIL PROTECTED]> To: "Lucene Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 23, 2002 5:59 PM Subject: Too many open files? > > > > I have seen a lot postings about this topic. Any final thoughts?

Re: Some questions - Analyzer

2002-04-19 Thread Rosen Marinov
see Lucene Officila FAQ: Question 17: 17. Can I write my own custom analyzer ? Sure. An analyzer is basically a factory object that creates a TokenStream object used to tokenized the text. A typical analyzer implementation creates the TokenStream by creating a standard tokenizer and combining it

Re: How to Delete documet with Term wich text is a number or string+number?

2002-04-16 Thread Rosen Marinov
Tuesday, April 16, 2002 7:45 PM Subject: RE: How to Delete documet with Term wich text is a number or string+number? > Which analyzer do you use? I think your analyzer filters out numbers > > peter > > > -Original Message- > > From: Rosen Marinov [mailto:[EMAIL PRO

How to Delete documet with Term wich text is a number or string+number?

2002-04-16 Thread Rosen Marinov
i have one question I want to delete a document from index. My index contains lucene Documents with 2 fields for exammlpe" "ID" "12345" "CONTENT" "The quick brown " now i wanrt to delete document with id 12345 create a Term --> t = new Term("ID","12345"); IndexReader.delete(t) - doesn't