Extending the similarity class

2005-07-22 Thread Ahmed El-dawy
Hello, I am using lucene to search plain text, but the order of the search results is not satisfying to my needs. First, I want to know how the similarity works. Then, I need to extend it. First, does the similarity class work on analyzed text or original search text? To be precise, does it cou

Re: Extending the similarity class

2005-07-23 Thread Ahmed El-dawy
results already sorted. On 7/22/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > On Jul 22, 2005, at 9:59 AM, Ahmed El-dawy wrote: > > > Hello, > > I am using lucene to search plain text, but the order of the search > > results is not satisfying to my needs. Fir

Re: Extending the similarity class

2005-07-23 Thread Ahmed El-dawy
y removing its prefix and suffix and changing some letters. Can I do this thing by extending some classes or I will have to make it (outside) lucene after search results are returned? On 7/23/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > On Jul 23, 2005, at 4:45 AM, Ahmed El-dawy wrote: &g

Reordering search results

2005-10-03 Thread Ahmed El-dawy
Hello, I have made a new Analyzer that does the following: 1- Remove common prefixes and suffixes. For example, uncommon will be converted to common. 2- Change some letters in the words with common spelling mistakes. For example, wellcome will be changed to welcome. 3- Stop words are removed. I

Re: Reordering search results

2005-10-06 Thread Ahmed El-dawy
Thanks for your help. I used PhraseQuery to boost close terms. I think of an idea for sop words but I don't know, if it has any drawbacks. I can index any dummy Token in place of all stop words. This token will never be searched but it will be counted as a Token and will make a space between words.

Many indexes Vs One Index

2005-10-12 Thread Ahmed El-dawy
Hello, I am indexing many txt files using lucene. First, I used an index for each txt file. This allowed me to select some indexes for search to limit search range. I used MultiSearcher to search all of them. The problem is that it took a long time to retrieve documents because they are scattered

BetterQueryParser

2005-10-26 Thread Ahmed El-dawy
Hello, I have built a better query parser. This one takes care of positionIncrement returned by the analyzer. I needed to build this because the old one does not run when multiple terms are at the same location. -- regards, Ahmed Saad package search; import java.io.IOException; import java.io.St

QueryParser with position increment > 1

2005-11-07 Thread Ahmed El-dawy
Hello, When I use QueryParser with phrase queries it makes some errors. It assumes that positionIncrement must be 0 or 1. In my case it can be greater than one (in case of stop words). It handles all non ONE positionIcrement as zero. The error is at lines 384, 385 if (t.getPositionIncrement

Extending Doucment and Hits

2006-02-18 Thread Ahmed El-dawy
Hello, I needed in my application to override the classes Document and Hits to make JDBCDocument and JDBCHits. I was surprised that Document and Hits are final classes and all methods in them are final. Why this? I couldn't make my program well because of this problem. Is there a way to overcome i

Extending Doucment and Hits

2006-02-18 Thread Ahmed El-dawy
Hello, I needed in my application to override the classes Document and Hits to make JDBCDocument and JDBCHits. I was surprised that Document and Hits are final classes and all methods in them are final. Why this? I couldn't make my program well because of this problem. Is there a way to overcome i

Re: Extending Doucment and Hits

2006-02-18 Thread Ahmed El-dawy
l and why you think > your design demands extensions of these classes? > > Erik > > > On Feb 18, 2006, at 3:41 PM, Ahmed El-dawy wrote: > > > Hello, > > I needed in my application to override the classes Document and Hits > > to make JDBCDocument