Hi!
I am quite new to lucene, so forgive me if I cannot see something obvious.

I have the following code:

<----------------------------------------------------------Code Start
------------------------------------------------------------>

  IndexReader reader = IndexReader.open(index);
        Searcher searcher = new IndexSearcher(reader);

       //Custom Analyzer...I think it works quite good. It performs stemming
and stopwords removal
        ClirAnalyzer analyzer=new ClirAnalyzer();

        QueryParser parser = new QueryParser(field, analyzer);

        Query query = parser.parse(querytext);
        
        Hits hits = searcher.search(query);

 <--------------------------------------------------------------- Code
End------------------------------------------------------------------------->

My documents are parts of a dictionary and are consisted of 2 fields:
English, Greek e.g.
"political correct" - "Greek translation"

In the dictionary I have repeated word e.g.
"political system' - "Greek translation"
"political' - "Greek translation"

When I Index the dictionary I use for each field with the following:

(new Field("english",text,Field.Store.YES,Field.Index.TOKENIZED)

The problem is that I cannot get more than 1 results. For example I enter as
search term the word "political" and I get a Hits object with length=1,
while it is obvious that I have more results with various similarity scores.

What can be happening?
-- 
View this message in context: 
http://www.nabble.com/only-one-search-result-tf3024628.html#a8402496
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to