Re: Words Frequency Problem

2006-08-18 Thread aslam bari
Hi soren, Thanks a lot for help. As you suggest me, i written the code, but i wonder Field does not contain Store, Index YES etc. It only contains Field.Keyword, Field.Text etc. Am i missing something. My Code is as Below. indexWriter = new IndexWriter(indexpath, analyzer, false);

search for web address

2006-08-18 Thread ould sid'ahmed
Hello, I indexed my document but, Can I search for an address web, it returns me no result, and when I search the same address with a query like "http*" it returns me a result, can you help me thanks - To unsubscribe, e-mai

Re: search for web address

2006-08-18 Thread Simon Willnauer
It's like looking for a needle in a haystack without any sinppets of your code. If you provide some infomation about how you index and search the specific field you will get an answer. :) best regards simon On 8/18/06, ould sid'ahmed <[EMAIL PROTECTED]> wrote: Hello, I indexed my document but,

Re: search for web address

2006-08-18 Thread Martin Braun
hello ould, sid'ahmed schrieb: > Hello, > I indexed my document but, Can I search for an address web, it returns > me no result, > and when I search the same address with a query like "http*" it returns > me a result, It depends on which analyzer you use: the StandardAnalyzer will do this with

Re: search for web address

2006-08-18 Thread ould sid'ahmed
thank you for your response, I index an URL, I use WhiteSpaceAnalyzer, but if do a search at this URL, it returns me nothings, I have an example : I index this URL: "http://www.yahoo.fr";, If I do a search at the word "yahoo.fr", it returns me no result, and if I do the search like "http*", it

Re: search for web address

2006-08-18 Thread Simon Willnauer
If you analyze the url http://www.yahoo.fr with the whitespace analyzer you will get one single token looking like that 1: [http://www.yahoo.fr:0->19:word] in an internal representation. so if you search for yahoo.fr you won't get any hit and you cant use left hand wildcards as they are not suppo

TextContentIndexer Problem

2006-08-18 Thread aslam bari
Dear All, I have used TextContentIndexer to Index my docs.It uses the TextContainsExpression Class for searching. When i am using DASL search for a single word like:- "" + "ques"+ "" + It gives the result successfully. But if i want to give complex query it gives the exceptio

Re: Words Frequency Problem

2006-08-18 Thread Sören Pekrul
aslam bari wrote: As you suggest me, i written the code, but i wonder Field does not contain Store, Index YES etc. It only contains Field.Keyword, Field.Text etc. Am i missing something. That sounds to me you using an older version. I use lucene-2.0.0. It should be the latest stabil. Sorry

Navigating Through the document

2006-08-18 Thread aslam bari
Dear all, I am using LuceneContentIndexer and slide2.2. I am searching whitin a XML document. I searched a word "circle". It gives me result that try.xml file contains it. Now i want to Navigate through this try.xml file for all "circle" occurrence. (Note:- "circle" is not a Node , it is

More frustration with Lucene/Java file i/o on Windows

2006-08-18 Thread Mark Modrall
Hi... It was a little comforting to know that other people have seen Windows Explorer refreshes crash java Lucene on Windows. We seem to be running into a long list of file system issues with Lucene, and I was wondering if other people had noticed these sort of things (and hopefull

Overriding Similarity

2006-08-18 Thread Grant Ingersoll
Hey Luceners, I am doing some documentation on scoring and I am interested in use cases people have for overriding the DefaultSimilarity. If you can share what you did and why you did it, it would be much appreciated. For example, Daniel Naber posted his at: http://www.gossamer- threads.c

Re: Navigating Through the document

2006-08-18 Thread Chris Hostetter
: To: Slide User , java-user@lucene.apache.org : Subject: Navigating Through the document Please do not cross post questions about Slide to the Lucene java-user mailing list. The Lucene java-user mailing list is for people with questions about using the Lucene Java APIs -- not for asking questio

Re: search for web address

2006-08-18 Thread Erick Erickson
When you say you use a WhitespaceAnalyzer, is it for both indexing AND searching? That's important. Also, I'd advise getting a copy of Luke and examining your index to see if what you indexed is indexed as you expect. See http://www.getopt.org/luke/ Best Erick On 8/18/06, ould sid'ahmed <[EMAIL

Re: More frustration with Lucene/Java file i/o on Windows

2006-08-18 Thread Michael McCandless
It was a little comforting to know that other people have seen Windows Explorer refreshes crash java Lucene on Windows. We seem to be running into a long list of file system issues with Lucene, and I was wondering if other people had noticed these sort of things (and hopefully any t

Re: More frustration with Lucene/Java file i/o on Windows

2006-08-18 Thread Chris Lu
Hi, Mark, I had the same issue with Lucene when maintaining Lucene index on Windows. It's mostly due to Windows OS can not delete a file correctly. While some versioning can alivate the problem somehow, my advice is to move to Linux according to my experience. Regarding the lock, you need to de

Re: Overriding Similarity

2006-08-18 Thread Chris Hostetter
: I am doing some documentation on scoring and I am interested in use : cases people have for overriding the DefaultSimilarity. If you can : share what you did and why you did it, it would be much appreciated. I touched on this a little bit when i commited SweetSpotSimilarity... http://www.nabb

Exception raised when searching with sorting on an empty index.

2006-08-18 Thread Mathias Herberts
Hi, I have an instance of MultiSearcher searching two indices, one based on an FSDirectory, and another one based on a RAMDirectory. The file based index is static, i.e. no changes are made to it. The RAM based index is used to add documents. When starting up, the RAM based index is empty. If I

RE: More frustration with Lucene/Java file i/o on Windows

2006-08-18 Thread Mark Modrall
Hi Mike, I do appreciate the thoroughness and graciousness of your responses, and I hope there's nothing in my frustration that you would take personally. Googling around, I've found other references to the sun jvm handling of the Windows file system to be, well, quixotic at best.

Re: More frustration with Lucene/Java file i/o on Windows

2006-08-18 Thread Michael McCandless
I do appreciate the thoroughness and graciousness of your responses, and I hope there's nothing in my frustration that you would take personally. Googling around, I've found other references to the sun jvm handling of the Windows file system to be, well, quixotic at best. No problem! A

Re: Indexing Documents which has Attachments and are Refered many times!!

2006-08-18 Thread Shaghayegh Sahebie
thanks Jason and Steve; maybe i didn't understand your solution well, but in this system a document is refered many times (we have a refer description wich we should index it also) and each time a document is refered i should update it in the lucene index and so i should delete it and then index