Re: Using the new tokenizer API from a jar file

2010-01-04 Thread Ahmed El-dawy
ttp://www.thetaphi.de > eMail: u...@thetaphi.de > > > > -Original Message- > > From: Ahmed El-dawy [mailto:aseld...@gmail.com] > > Sent: Wednesday, December 30, 2009 11:56 AM > > To: java-user@lucene.apache.org > > Cc: solr-u...@lucene.apache.org > > S

Re: Using the new tokenizer API from a jar file

2009-12-30 Thread Ahmed El-dawy
Thanks all for your interest, especially Uwe. I asked this question on solr-user at the beginning but I got no reply. That's why I re-asked the question at java-user. Thanks for your efforts. I will try it now. On Mon, Dec 28, 2009 at 12:02 PM, Uwe Schindler wrote: > I opened https://issues.apac

Using the new tokenizer API from a jar file

2009-12-27 Thread Ahmed El-dawy
Hello all, I've built a tokenizer which uses the new tokenizer API (the one with the Decorator Pattern). I built a new AttributeReader called GlossAttribute and GlossAttributeImpl. I packaged it into a jar file and it's working very fine. I tried to use it with solr and the problems began. It's a

Re: Accessing Lucene Index stored in a jar file

2006-02-19 Thread Ahmed El-dawy
, Ahmed El-dawy <[EMAIL PROTECTED]> wrote: > Thanks for your response. > You are both right. > As I didn't find an already made implementation for this, I am now > working in ZipDirectory class and I will send it to you as I finish > it. > > Thanks alot > Ahmed Sa

Re: Accessing Lucene Index stored in a jar file

2006-02-19 Thread Ahmed El-dawy
o these people: > http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=jardirectory%20lucene > > - Original Message > From: Ahmed El-dawy <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Saturday, February 18, 2006 3:38:16 PM > Subject: Accessing Lu

Re: Accessing Lucene Index stored in a jar file

2006-02-18 Thread Ahmed El-dawy
java zip library > (http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/package-summary.html) > and compress and uncompress it separately? just an idea > > - Original Message ----- > From: "Ahmed El-dawy" <[EMAIL PROTECTED]> > To: > Sent: Saturday, Februar

Accessing Lucene Index stored in a jar file

2006-02-18 Thread Ahmed El-dawy
Hello, Is there a way to access a Lucene Index which is stored inside a .zip or .jar file? This is important because my indexes are very large (> 200 M.B.) and I need to compress them. I tried to store documents using Store.COMPRESSED, but the compression ratio wasn't satisfying. I need to add

Re: Multiple terms with the same position in PhraseQuery

2005-11-07 Thread Ahmed El-dawy
Thanks very much all of you I have just checked out the SVN version using SmartSVN and it worked very fine. I will investigate it more carefully as I can use new features in it. I see that PhrasePrefixQuery is becoming @deprecated. Good! It made many problems when I tried to use it. I have switched

Re: Multiple terms with the same position in PhraseQuery

2005-11-06 Thread Ahmed El-dawy
ik Hatcher <[EMAIL PROTECTED]> wrote: > On 4 Nov 2005, at 23:08, Ahmed El-dawy wrote: > > BTW, I think there's a newer version of Lucene that I can't get, my > > version is 1.4.3 and I didn't find any newer version at the site. For > > example, the QueryParser i

Re: Multiple terms with the same position in PhraseQuery

2005-11-04 Thread Ahmed El-dawy
of course, is to write the code as a JUNit test that uses assertions > to demonstrate how your expected outcome differes from outcome you > observe. > This has the added bonus of serving as a easy to commit test case if there > truely is a bug that needs fixed. > > > : Date: F

Re: Multiple terms with the same position in PhraseQuery

2005-11-04 Thread Ahmed El-dawy
This is a source code that shows the problem I am talking about. In this example a new analyzer is made that outputs all words to the same position (all but the first one are positionIncrement=0). To get the problem I am talking about uncomment the only commented line. //---

Multiple terms with the same position in PhraseQuery

2005-11-04 Thread Ahmed El-dawy
Hello, My analyzer sometimes gives multiple terms for the same word. This makes them generated at the same position. When I use PhraseQuery to search for this term, it matches documents with all these terms at the same position (as if it is an AND). I want it to match documents with at least ONE