Re: A solution to HitCollector-based searches problems

2007-03-11 Thread oramas martín
Hello Mohammad, You don't have to remove the lucene-core jar file, just play with the classpath order to load the jar files. You have two possibilities: 1.- Use the searcher wrapper (valid for Lucene 2.0 or 2.1 version): Put "lu-collector-0.8.jar" AFTER "lucene-core-2.1.0.jar" and wrap any I

Re: Query String for a phrase?

2007-03-11 Thread ruchi thakur
am sorry , guess "*" caused confusion. My question is that, using jakarta&apache am able to search for jakarta apache, but was confused as no reference to this query String(jakarta&apache) could find anywhere on net. So just wanted to make sure if jakarta&apache -> jakarta apache like "jakarta

ensuring search String availability in the content returned by lucene

2007-03-11 Thread ruchi thakur
Am using lucene search. I have a field as "summary" in my Document, which is having large amount of content/data. In each search i want to get not more than 200 words from the field "summary". Now i want that in the 200 words that i get, there should be search String available. If this possible in

Re: help!!!!

2007-03-11 Thread Grant Ingersoll
Looks like the Lucene libraries are not in your classpath. On Mar 11, 2007, at 12:08 AM, ashwin kumar wrote: hi all my name is ashwin i am trying to connect my servlet front end to my backend lucene search program these r the two programs <> import javax.servlet.*; import javax.servlet.ht

date range querys

2007-03-11 Thread Thomas Klein
Hi there, I'm indexing a lot of documents with lucene and I'm really happy with it :) Observing my users, I understand they are querying only small range of time. Often, they only read results back from 1 month. I got some years in my 1.3Go index. Querys takes some seconds getting and returni

Re: Delete document with keyword field

2007-03-11 Thread Erick Erickson
1> what analyzers are you using at index time? 2> Have you used Luke to look at your index and see what's actually there? It's entirely possible that what you really have in your index is, as you suspect, 839930494, it all depends upon the analyzer you used. Erick On 3/11/07, Harini Raghavan <[

Re: Query String for a phrase?

2007-03-11 Thread Erick Erickson
It depends upon your analyzer during both index and search operations. WhitespaceAnalyzer would do nothing to your string, and you'd have "jakarta&apache". StandardAnalyzer would give you two terms, "jakarta" and "apache" and at query time this would be either jakarta AND apache or jakarta OR ap

Re: date range querys

2007-03-11 Thread Erick Erickson
Search the mail archive for DateRange, Date, DateTools ConstantScoreRangeQuery, etc and you'll find a wealth of discussion on dates, which turn out to be more complex than you think ... But the first thing I'd think about is your resolution. Understand that range queries may assemble a giant OR q

Re: Query String for a phrase?

2007-03-11 Thread Doron Cohen
"ruchi thakur" <[EMAIL PROTECTED]> wrote on 11/03/2007 04:36:39: > So just wanted to make sure if > > jakarta&apache -> jakarta apache > like > "jakarta apache" -> jakarta apache > > ie; jakarta&apache seaches for phrase jakarta apache > Regards, > Ruchi q1: jakarta&apache -> BooleanQurey("jak

Re: Query String for a phrase?

2007-03-11 Thread ruchi thakur
Thanks a lot for your help.. below is a snapshot from the code, am using for search org.apache.lucene.analysis.StopAnalyzer sa = new org.apache.lucene.analysis.StopAnalyzer(); org.apache.lucene.analysis.Analyzer analyzer = sa; QueryParser parser = new QueryParser(dIndexField, analyzer); Query que

Re: help!!!!

2007-03-11 Thread Michael Wechner
ashwin kumar wrote: java.lang.NoClassDefFoundError: org/apache/lucene/analysis/Analyzer mainpage.doGet(mainpage.java:54) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) filters.ExampleFilter.doFilter(Exam

Re: Indexing-Error: Cannot delete

2007-03-11 Thread robisbob
Thanx for your help. I am using now lucene 2.1 and no problems anymore. cheers Rob There are several sneaky IO related issues in Lucene, that have now been fixed in Lucene 2.1, that could explain this. Is it possible to test Lucene 2.1 to see if this issue is still happening? Mike

Re: Indexing-Error: Cannot delete

2007-03-11 Thread Michael McCandless
"robisbob" <[EMAIL PROTECTED]> wrote: > Thanx for your help. I am using now lucene 2.1 and no problems anymore. > > cheers > Rob > > > There are several sneaky IO related issues in Lucene, that have now been > > fixed > > in Lucene 2.1, that could explain this. Is it possible to test Lucene > >

Re: Query String for a phrase?

2007-03-11 Thread Steffen Heinrich
On 11 Mar 2007 at 22:58, ruchi thakur wrote: > Thanks a lot for your help.. > below is a snapshot from the code, am using for search > org.apache.lucene.analysis.StopAnalyzer sa = new > org.apache.lucene.analysis.StopAnalyzer(); > org.apache.lucene.analysis.Analyzer analyzer = sa; > QueryParser p

Re: Query String for a phrase?

2007-03-11 Thread ruchi thakur
ok, so does that mean i can use both q1 and q2 for phrase query ie; for searching words adjacent to each other. Actually that was my only concern, as i wanted to use q1 for phrase query, rather than q2. Regards, On 3/12/07, Steffen Heinrich <[EMAIL PROTECTED]> wrote: On 11 Mar 2007 at 22:58, ru

Need a help

2007-03-11 Thread Chaminda Amarasinghe
Note: forwarded message attached. - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.--- Begin Message --- Hi all, I'm new to this group, I'm using lucene for indexing. I have a problem. Any help gratly appreciate.

Lucene Indexing - Getting Hited words in a query

2007-03-11 Thread Chaminda Amarasinghe
Hi all, I'm new to this group, I'm using lucene for indexing. I have a problem. Any help gratly appreciate. Please see the following code // three fields MultiFieldQueryParser parser = new MultiFieldQueryParser(new String[]{"title", "tags", "content"}, new StandardAnalyzer()); // OR operator pa

Re: Delete document with keyword field

2007-03-11 Thread Harini Raghavan
Hi Erick, I am using StandardAnalyzer. Also I have used LUCLI to query the index and it shows the value for the Id field with the underscore. But I am unable to retrieve the document with any of the queries in Lucli : lucli> tokens +Id:_839930494 -or- lucli> tokens +Id:839930494 I have no clue

pdf box help

2007-03-11 Thread ashwin kumar
hi all i am able to convert a pdf in to a text file using pdfbox. and this is the code that i used import org.pdfbox.pdfparser.PDFParser; import org.pdfbox.pdmodel.PDDocument; import org.pdfbox.util.PDFTextStripper; import org.pdfbox.*; import java.io.*; public class PDFConvert { public static

Re: pdf box help

2007-03-11 Thread karl wettin
12 mar 2007 kl. 07.03 skrev ashwin kumar: hi all i am able to convert a pdf in to a text file using pdfbox. and this is the code that i used { String pdfFile=new String ("D:\\ASHWIN\\res\\ashwin.pdf"); PDDocument doc = PDDocument.load(pdfFile); PDFTextStripper strip = new PDFTextStr

Re: Delete document with keyword field

2007-03-11 Thread karl wettin
12 mar 2007 kl. 06.01 skrev Harini Raghavan: I am using StandardAnalyzer. Also I have used LUCLI to query the index and it shows the value for the Id field with the underscore. But I am unable to retrieve the document with any of the queries in Lucli : lucli> tokens +Id:_839930494 -or- lu

search for phrase with specail chars?

2007-03-11 Thread ruchi thakur
I want to search for phrase „innere Organe" bezeichnet am using query q1 = "„innere Organe\" bezeichnet" is there any issue with q1 am getting Exception in retrieveQuery().IndexDirec:Lexical error at line 1, column 30. Encountered: after : "" Regards, Ruchika

Re: pdf box help

2007-03-11 Thread ashwin kumar
it says that the requested URL is not found On 3/12/07, karl wettin <[EMAIL PROTECTED]> wrote: 12 mar 2007 kl. 07.03 skrev ashwin kumar: > hi all i am able to convert a pdf in to a text file using pdfbox. > and this > is the code that i used > { > >String pdfFile=new String ("D:\\ASHWIN\\

Re: pdf box help

2007-03-11 Thread karl wettin
12 mar 2007 kl. 07.44 skrev ashwin kumar: it says that the requested URL is not found Compare the URL in your browser with the URL in the mail. Perhaps your mail client does not handle the line feed? On 3/12/07, karl wettin <[EMAIL PROTECTED]> wrote: 12 mar 2007 kl. 07.03 skrev ashwi

Re: search for phrase with specail chars?

2007-03-11 Thread karl wettin
12 mar 2007 kl. 07.44 skrev ruchi thakur: I want to search for phrase „innere Organe" bezeichnet am using query q1 = "„innere Organe\" bezeichnet" is there any issue with q1 am getting Exception in retrieveQuery().IndexDirec:Lexical error at line 1, column 30. Encountered: after :

Re: search for phrase with specail chars?

2007-03-11 Thread ruchi thakur
org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column 30. Encountered: after : "" On 3/12/07, ruchi thakur <[EMAIL PROTECTED]> wrote: I want to search for phrase „innere Organe" bezeichnet am using query q1 = "„innere Organe\" bezeichnet" is there any issue wi

Re: search for phrase with specail chars?

2007-03-11 Thread ruchi thakur
no, i just get the folowing org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column 30. Encountered: after : "" On 3/12/07, karl wettin <[EMAIL PROTECTED]> wrote: 12 mar 2007 kl. 07.44 skrev ruchi thakur: > I want to search for phrase „innere Organe" bezeichnet > am

Re: pdf box help

2007-03-11 Thread ashwin kumar
ya sorry got it but that link contains only a program to index text i have already successfully indexed .txt now want to index pdf On 3/12/07, karl wettin <[EMAIL PROTECTED]> wrote: 12 mar 2007 kl. 07.44 skrev ashwin kumar: > it says that the requested URL is not found Compare the URL in you

Re: search for phrase with specail chars?

2007-03-11 Thread karl wettin
12 mar 2007 kl. 07.53 skrev ruchi thakur: no, i just get the folowing org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column 30. Encountered: after : "" The problem is probably that you have a " in your query, and it expects an end "-token. So it needs to be escaped.

Re: pdf box help

2007-03-11 Thread karl wettin
12 mar 2007 kl. 07.54 skrev ashwin kumar: ya sorry got it but that link contains only a program to index text i have already successfully indexed .txt now want to index pdf You can not index the PDF. You need to index the text you have extracted. >> >content = strip.getText(doc);

Re: search for phrase with specail chars?

2007-03-11 Thread ruchi thakur
yes that is exactly what i am doing in java String i have something like String aSearchStr = "\"„innere Organe\\\" bezeichnet\""; Query query = parser.parse(aSearchStr); 2nd line to parse gives me the Exception. In this case as i understand the search String input that goes to lucene is actually

Re: Lucene Indexing - Getting Hited words in a query

2007-03-11 Thread Chaminda Amarasinghe
Why nobody is anwering me? Pls help me. Chaminda Amarasinghe <[EMAIL PROTECTED]> wrote: Hi all, I'm new to this group, I'm using lucene for indexing. I have a problem. Any help gratly appreciate. Please see the following code // three fields MultiFieldQueryParser parser = new MultiFieldQuer

Re: Lucene Indexing - Getting Hited words in a query

2007-03-11 Thread karl wettin
12 mar 2007 kl. 08.35 skrev Chaminda Amarasinghe: Why nobody is anwering me? Pls help me. It might take some time until someone that knows the answer reads you question. Chaminda Amarasinghe <[EMAIL PROTECTED]> wrote: Hi all, I'm new to this group, I'm using lucene for indexing. I

Re: Lucene Indexing - Getting Hited words in a query

2007-03-11 Thread Chaminda Amarasinghe
thanks karl, karl wettin <[EMAIL PROTECTED]> wrote: 12 mar 2007 kl. 08.35 skrev Chaminda Amarasinghe: > Why nobody is anwering me? > Pls help me. It might take some time until someone that knows the answer reads you question. > > Chaminda Amarasinghe wrote: > Hi all, > > I'm new to this grou