Re: Search result snippets?

2006-01-06 Thread Otis Gospodnetic
Dan, Grab the highlighter Jar that comes with Lucene in Action code - http://www.lucenebook.com/ . That will work with Lucene 1.4.3. Otis --- Dan Frankowski <[EMAIL PROTECTED]> wrote: > Chris, > > Thanks, I have signed up for the wiki and will put in the answer when > I > fully understand it

RE: Search result snippets?

2006-01-06 Thread Koji Sekiguchi
Hi Dan, I've experienced same error you are facing. Check out: http://www.gossamer-threads.com/lists/lucene/java-user/28554?search_string=T ermVectorOffsetInfo;#28554 Hope this helps. Koji > -Original Message- > From: Dan Frankowski [mailto:[EMAIL PROTECTED] > Sent: Saturday, January

Re: need some advice/help with negative query.

2006-01-06 Thread Chris Hostetter
: > Should we should detect the case of all negative clauses and throw in : > a MatchAllDocsQuery? : > : > I guess this would be done in the QueryParser, but one could also make : > a case for doing it in the BooleanQuery. if it were going to be done, i would add it to the QueryParser, and not to

Re: Search result snippets?

2006-01-06 Thread Dan Frankowski
Chris, Thanks, I have signed up for the wiki and will put in the answer when I fully understand it. Otis, So, I downloaded the Highlighter code with svn checkout http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/ Then I tried

Re: need some advice/help with negative query.

2006-01-06 Thread Erik Hatcher
On Jan 6, 2006, at 2:57 PM, Yonik Seeley wrote: Should we should detect the case of all negative clauses and throw in a MatchAllDocsQuery? I guess this would be done in the QueryParser, but one could also make a case for doing it in the BooleanQuery. In a custom (non-generalizable) query par

Re: need some advice/help with negative query.

2006-01-06 Thread Beady Geraghty
Thanks. On 1/6/06, Paul Elschot <[EMAIL PROTECTED]> wrote: > > On Friday 06 January 2006 18:04, Beady Geraghty wrote: > > I would like to do queries that are negative. I mean a query with > > only negative terms and phrases. For example, retrieve all > > documents that do not contain the term "ap

Re: need some advice/help with negative query.

2006-01-06 Thread Paul Elschot
On Friday 06 January 2006 18:04, Beady Geraghty wrote: > I would like to do queries that are negative. I mean a query with > only negative terms and phrases. For example, retrieve all > documents that do not contain the term "apple". > > For now, I have a limited set of documents (say, 1) to

Re: need some advice/help with negative query.

2006-01-06 Thread Paul Elschot
On Friday 06 January 2006 20:57, Yonik Seeley wrote: > Should we should detect the case of all negative clauses and throw in > a MatchAllDocsQuery? > > I guess this would be done in the QueryParser, but one could also make > a case for doing it in the BooleanQuery. Overriding getBooleanQuery() fr

Re: need some advice/help with negative query.

2006-01-06 Thread Beady Geraghty
I thought along the line of dummy:all as well, but for some reason, I chose bitset. I am not sure if it matters which route to go. My situation is that for now, I have say 1 documents, but, maybe I incease that by 100 time or more. I would guess that half of the documents qualifies, and half

Re: Directory Permissions from Tomcat

2006-01-06 Thread JJ Braz
Follow up: One thing I though I could is to modify the "String usage" line on the IndexHTML file: Currently the line reads: String usage = "IndexHTML [-create] [-index ] "; I want to modify it to: String usage = "IndexHTML [-create] [-index ] c:\sourcedir"; will t

Re: need some advice/help with negative query.

2006-01-06 Thread Beady Geraghty
Thank you all for your answer. On 1/6/06, Yonik Seeley <[EMAIL PROTECTED]> wrote: > > Should we should detect the case of all negative clauses and throw in > a MatchAllDocsQuery? > > I guess this would be done in the QueryParser, but one could also make > a case for doing it in the BooleanQuery. >

Re: Deprecated warning messages inorg.apache.lucene.document.Field

2006-01-06 Thread Chris Hostetter
: okay...so what are alternative methods i should use? Where can i get : the information? If you are using code compiled from the trunk of the subversion repository, you should consult the javadocs built from the trunk of the subversion repository. if you are using a jar build from the old CVS r

Re: Deprecated warning messages inorg.apache.lucene.document.Field

2006-01-06 Thread Urvashi Gadi
okay...so what are alternative methods i should use? Where can i get the information? Best, Urvashi Quoting Chris Hostetter <[EMAIL PROTECTED]>: : Why do i get the following warning messages? I couldn't find any : information in javadocs. I am using java version 1.4.2 and lucene : version

Re: Deprecated warning messages in org.apache.lucene.document.Field

2006-01-06 Thread Chris Hostetter
: Why do i get the following warning messages? I couldn't find any : information in javadocs. I am using java version 1.4.2 and lucene : version 1.5. when you say "lucene version 1.5" i assume you mean you are using a jar build from Subversion (or perhaps a jav build from the old cvs repository).

Deprecated warning messages in org.apache.lucene.document.Field

2006-01-06 Thread Urvashi Gadi
Hi All, Why do i get the following warning messages? I couldn't find any information in javadocs. I am using java version 1.4.2 and lucene version 1.5. Thanks for the help, Urvashi --- IndexingApp.java:131: warning: T

Re: need some advice/help with negative query.

2006-01-06 Thread Yonik Seeley
Should we should detect the case of all negative clauses and throw in a MatchAllDocsQuery? I guess this would be done in the QueryParser, but one could also make a case for doing it in the BooleanQuery. -Yonik On 1/6/06, Erik Hatcher <[EMAIL PROTECTED]> wrote: > With Lucene's trunk, there is a M

Re: need some advice/help with negative query.

2006-01-06 Thread Erik Hatcher
With Lucene's trunk, there is a MatchAllDocsQuery. You could use this in a BooleanQuery with your negative-only query. Another option, if you're at Lucene 1.4.3 is to index the same value for a dummy field for every document (say like "dummy:all") and use a TermQuery in a BooleanQuery wit

Re: need some advice/help with negative query.

2006-01-06 Thread Daniel Naber
On Freitag 06 Januar 2006 18:04, Beady Geraghty wrote: > For now, I have a limited set of documents (say, 1) to index. > I can create a bitset that represents the search result of hits on > "apple". The development version of Lucene contains a MatchAllDocsQuery so you can create queries (pro

Re: Sorting Facility

2006-01-06 Thread Erik Hatcher
On Jan 6, 2006, at 8:34 AM, Veera, Sekhar S wrote: Is there any way to sort the records in a file using lucene.? I presume by "records" and "file" you mean sort Hits from a search of an index. Yes, Lucene can do that. Look at the various overloaded IndexSearcher.search() methods... the

Directory Permissions from Tomcat

2006-01-06 Thread JJ Braz
After succesfully running the Lucene Demo I'm now trying to customize it on a Win XP machine. Using the IndexHTML file I want to create my own index, but I'm getting an "Access Denied" error. The files which I want to include in the index are in c:\sourcedir and I want the index to be created i

need some advice/help with negative query.

2006-01-06 Thread Beady Geraghty
I would like to do queries that are negative. I mean a query with only negative terms and phrases. For example, retrieve all documents that do not contain the term "apple". For now, I have a limited set of documents (say, 1) to index. I can create a bitset that represents the search result of

Re: Handling fractional field range queries

2006-01-06 Thread Erik Hatcher
On Jan 5, 2006, at 4:42 PM, Urvashi Gadi wrote: Any pointers on how to handle range queries if the data type is double or float? There is a bit of this on the wiki: The main thing to note is that what is indexed in Lucene

Sorting Facility

2006-01-06 Thread Veera, Sekhar S
Hi , Is there any way to sort the records in a file using lucene.? Regards Veera - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cloning of queries

2006-01-06 Thread Tony Scerri
Hi Is there an official line on the supported behaviour for cloning queries? I have been working with Spans and I found they were not working correctly because of missing clone methods on some of the classes. I expanded this to handle SpanWildcardQuery also which comes in very handy. But today i a

Re: "Starts with" query?

2006-01-06 Thread Erik Hatcher
On Jan 6, 2006, at 7:00 AM, Erik Hatcher wrote: I notice that if I have a title "auto update", then the phrase query trick works if it searches on title:"0start0 auto*" but does not find any matches for title:"0start0 aut*" I'm a bit stuck. PhraseQuery does not handle wil

Re: "Starts with" query?

2006-01-06 Thread Erik Hatcher
On Jan 5, 2006, at 7:01 PM, Paul Smith wrote: first off response to my own post, I meant PhraseQuery instead. But, since we're only tokenizing this field ,and not storing the entire contents of the field, I'm not sure this is ever going to work, is it? Sure it will :) I notice that if I