RE: Explanation

2007-11-23 Thread John Griffin
Oh, duh! Of course it is. I've done that before. Thanks Daniel. John G. -Original Message- From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 5:52 PM To: java-user@lucene.apache.org Subject: Re: Explanation On Samstag, 24. November 2007, John Griffin wrote: >

Help on FuzzyLikeThisQuery

2007-11-23 Thread Cool Coder
Hello, I am trying to use FuzzyLikeThisQuery to search my help system and show set of help entries for user selected Help topic. For any selected Help topic, System needs to display all related topics. This works somehow, but if query contains generic terms then result returned by Fu

Re: Explanation

2007-11-23 Thread Daniel Naber
On Samstag, 24. November 2007, John Griffin wrote: >             System.out.println(indexSearcher.explain(query, > counter).toString()); I think you need to use hits.id() instead of counter. Regards Daniel -- http://www.danielnaber.de -

Explanation

2007-11-23 Thread John Griffin
Is there a problem with the term frequency count (tf) and the IndexSearcher.explain method? I'm searching the following string (fieldname is description) for the term 'salesman' and receive the accompanying explanation from IndexSearcher.explain(.). I've highlighted salesman. score => 0.3362463

Sorting and TopDocCollector

2007-11-23 Thread Haroldo Nascimento
Hi, I am using TopDocCollector in IndexerSearher.search(...) for get the BitSet of result, but I need of sort the result by two variable: by any term of document and by score. Is possible do it using Collector ? Have any form of use the method search(..., sort) and after get the BitSet of re

Re: Help needed

2007-11-23 Thread Hasan Diwan
On 23/11/2007, Liaqat Ali <[EMAIL PROTECTED]> wrote: > *Can not find symbol: method Text (java.lang.String, java.lang.String) > location: class org.apache.lucene.document.Field > document.add(Field.Text("fieldname", text)); > * If you're using Lucene 2.x.x, the static methods of the Field class

Help needed

2007-11-23 Thread Liaqat Ali
I m facing problem while using a small indexing example; IndexWriter writer = new IndexWriter(indexDir, analyzer, createFlag); Document document = new Document(); document.add(Field.Text("fieldname", text)); writer.addDocument(document)

Re: Where to place a filter...

2007-11-23 Thread Doron Cohen
Seems your ask if to remove accents before or after stemming. Here is a discussion on similar question (for Spanish) - http://www.nabble.com/Snowball-and-accents-filter...--tf3653720.html#a10207399 Hope this helps, Doron Christian Aschoff <[EMAIL PROTECTED]> wrote on 22/11/2007 21:27:20: > Hell

Re: help required

2007-11-23 Thread Mark Miller
Copy the current Standard Analyzer and add '-' to the definition of a LETTER. You might work with the StandardAnazlyer on the trunk which uses JFlex rather than the current JavaCC flavor...the new one is something like 6-10 times faster. - Mark Shakti_Sareen wrote: Hi Can anyone help me wi

help required

2007-11-23 Thread Shakti_Sareen
Hi Can anyone help me with a code having a class which extends the StandardAnalyzer and that analyzer should not tokenize the word across hyphen SHAKTI SAREEN -Original Message- From: Shai Erera [mailto:[EMAIL PROTECTED] Sent: Thursday, November 22, 2007 9:53 PM To: java-user@lucene.

RE: Force MultiFieldQueryParser always to use PrefixQuery

2007-11-23 Thread Anders Lybecker
Hi, I thought about appending a * at the end of each word like *. I did not like the idea and it becomes cumbersome when using the complex QueryParser syntax. I also investigated the option of overriding the getFieldQuery via inheritance, but I doubt it works at the method does more than just ret