Fwd: hi sample code

2007-02-13 Thread ashwin kumar
hi thanks for your kindest reply. i just trying to index some text files using lucene-2.0.0 if you can share any sample programs for text file indexing in lucene-2.0.0 it will be allot helpfull for me to understand lucene better. if u have any sample programs pls send it across to this mail is

encoding question.

2007-02-13 Thread Mohammad Norouzi
Hi I want to index data with utf-8 encoding, so when adding field to a document I am using the code new String(value.getBytes("utf-8")) in the other hand, when I am going to search I was using the same snippet code to convert to utf-8 but it did not work so finally I found somewhere that had been

Re: More Precise Highlighting

2007-02-13 Thread markharw00d
Not sure I fully understand the problem. The query is effectively "allContent:someTitleText" and you want to highlight the string "someTitleText" in the title field? If you pass null as a fieldname to the QueryTermExtractor it will use all term values, regardless of field, as string to highlight

More Precise Highlighting

2007-02-13 Thread Renaud Waldura
The old highlighter code used to highlight found terms in any field (too broad). The new highlighter lets one specify a field when highlighting, but it highlights that field only (too narrow). In my case we have an "all" field that is the concatenation of all data about the document. When I high

Re: Double Quotes and TermQuery

2007-02-13 Thread karl wettin
13 feb 2007 kl. 19.47 skrev Rajesh parab: I am not using QueryParser in my application and constructing queries (TermQuery, RangeQuery, BooleanQuery, etc.) explicitly. But, it looks like double quotes are not working with TermQuery. For example: query = new TermQuery(new Term("location", "\"sa

Double Quotes and TermQuery

2007-02-13 Thread Rajesh parab
Hi Everyone, I understand that QueryParser allows searches using double quote characters. I was wondering if the double quote will also work with TermQuery. I am not using QueryParser in my application and constructing queries (TermQuery, RangeQuery, BooleanQuery, etc.) explicitly. But, it looks

similarity and delete duplicates

2007-02-13 Thread sdeck
Hey everyone. I have been trying to get a certain kind of delete duplicates working, but I need a little help. Here is my problem. I have many documents, that after a web crawl, many different sites could have documents that have similar titles. I want to remove all of those documents except for

Re: Please Help me

2007-02-13 Thread Mark Miller
The test code in the Highlighter contrib also has some synonym code. On 2/13/07, Michael Wechner <[EMAIL PROTECTED]> wrote: Saroja Kanta Maharana wrote: > Hi All, > > Any one help to implements synonyms search in lucene. > you might want to take a look at the ontology module within nutch.

Re: Please Help me

2007-02-13 Thread Michael Wechner
Saroja Kanta Maharana wrote: Hi All, Any one help to implements synonyms search in lucene. you might want to take a look at the ontology module within nutch. HTH Michael *Regards* *Saroj* On 2/13/07, karl wettin <[EMAIL PROTECTED]> wrote: 13 feb 2007 kl. 12.41 skrev Saro

Re: Please Help me

2007-02-13 Thread Erik Hatcher
There are examples of both synonym handling and hierarchical folder- like handling using Lucene in "Lucene in Action". The code is available from , as well as couple of sample chapters. The material there would be a good starting point for future discussions.

RE: Please Help me

2007-02-13 Thread Kainth, Sachin
I have a similar request. Does anyone know if Lucene is capable of implementing polyheirarchical taxonomies? -Original Message- From: Saroja Kanta Maharana [mailto:[EMAIL PROTECTED] Sent: 13 February 2007 13:45 To: java-user@lucene.apache.org Subject: Re: Please Help me Hi All, A

Re: Please Help me

2007-02-13 Thread Saroja Kanta Maharana
Hi All, Any one help to implements synonyms search in lucene. *Regards* *Saroj* On 2/13/07, karl wettin <[EMAIL PROTECTED]> wrote: 13 feb 2007 kl. 12.41 skrev Saroja Kanta Maharana: > "When i searched for "AND", "OR", "NOT" as query, it gives me the > following > Exception" > >

Re: Please Help me

2007-02-13 Thread karl wettin
13 feb 2007 kl. 12.41 skrev Saroja Kanta Maharana: "When i searched for "AND", "OR", "NOT" as query, it gives me the following Exception" Exception in thread "main" org.apache.lucene.queryParser.ParseException: Encountered "" at line 1, column 3. You tried to parse the string "OR" as a

RE: Please Help me

2007-02-13 Thread Kainth, Sachin
I believe that this happens because "AND", "OR" and "NOT" are all reserved words for joining together other search terms and therefore if you don't want the exception thrown then you must capture any "AND", "OR" and "NOT"s that are entered on their own and not pass them to the QueryParser. -O

Please Help me

2007-02-13 Thread Saroja Kanta Maharana
Hi All, "When i searched for "AND", "OR", "NOT" as query, it gives me the following Exception" Exception in thread "main" org.apache.lucene.queryParser.ParseException: Encountered "" at line 1, column 3. Was expecting one of: "(" ... ... ... ... ... "[" ... "{" ... .

Re: Benchmarker

2007-02-13 Thread karl wettin
13 feb 2007 kl. 04.33 skrev Doron Cohen: Running (once) "ant jar" from the trunk directory should do it. Did it solve the problem? Indeed. Do you have way to much time to spare? I patched up the code to run on the index index in LUCENE-550. Unfortunatly it seems as I messed something u

Re: hi compile error

2007-02-13 Thread Saroja Kanta Maharana
Hi, I also new to lucene. As see your error, It may be the Lucene version problem. Which version r u using? means which which jar file ? Will you say me the Lucene Jar file name ?? Regards Saroj On 2/13/07, Doron Cohen <[EMAIL PROTECTED]> wrote: Hi ashwin, ashwin kumar wrote: > F