RE: SPAN QUERY [HOW TO]

2005-03-09 Thread Karthik N S
Hi Guys. Apologies U got it bingo,Am trying to do something similar as u replied. But there is a glitch in the process If the search is done on the 'leaf_category' as u said with word such as 'CAMERA DIGITAL' instead of 'DIGITAL CAMERA' the resultant return hits will be

RE: Score Question

2005-03-09 Thread Omar Didi
Hi folks, I have a task when I need to read the query entered by the user and then add to it many other terms in a boolean expression. for examples: if the user enters: red. i need to take red and generate the following query(red AND blue) OR (red AND green) OR( red AND yellow). the problem is

Re: Score Question

2005-03-09 Thread Erik Hatcher
Did you reindex after upgrading? Erik On Mar 9, 2005, at 5:55 PM, Luke Shannon wrote: Hi; Has the scoring changed recently? I just upgraded all the jars is our application (Lucene included). I'm getting scores like this from documents in hits: 6.9699495E-4 The XSL that creates the user inte

Score Question

2005-03-09 Thread Luke Shannon
Hi; Has the scoring changed recently? I just upgraded all the jars is our application (Lucene included). I'm getting scores like this from documents in hits: 6.9699495E-4 The XSL that creates the user interface converts the score to an int and than display it. This currently resulting in a zero

Re: Obtaining the contexts of hits

2005-03-09 Thread Otis Gospodnetic
Since you own Lucene in Action, look at this: http://www.lucenebook.com/search?query=highlighter+context See section 8.7, Highlighting query terms. Otis --- Andy Roberts <[EMAIL PROTECTED]> wrote: > Hi, > > I've been using Lucene for a few months now, although not in a > typical > "building a

Re: Unsubscribe?

2005-03-09 Thread Otis Gospodnetic
Try <[EMAIL PROTECTED]> --- Jerry Jalenak <[EMAIL PROTECTED]> wrote: > The e-mail address for unsubscribing from the list appears to not be > working. Can someone check on it? > > Jerry Jalenak > Senior Programmer / Analyst, Web Publishing > LabOne, Inc. > 10101 Renner Blvd. > Lenexa, KS 66219

Re: Best Practices for Distributing Lucene Indexing and Searching

2005-03-09 Thread Doug Cutting
Yonik Seeley wrote: I'm trying to support an interface where documents can be added one at a time at a high rate (via HTTP POST). You don't know all of the documents ahead of time, so you can't delete them all ahead of time. A simple solution is to queue documents as they're posted. When either

Obtaining the contexts of hits

2005-03-09 Thread Andy Roberts
Hi, I've been using Lucene for a few months now, although not in a typical "building a search engine" kind of way*. Basically, I have some large documents. I would like a system whereby I search for a term, and then I receive a hit for each match, with its context, e.g., ten words either side

Re: Best Practices for Distributing Lucene Indexing and Searching

2005-03-09 Thread Yonik Seeley
I'm trying to support an interface where documents can be added one at a time at a high rate (via HTTP POST). You don't know all of the documents ahead of time, so you can't delete them all ahead of time. Given this constraint, it seems like you can do one of two things: 1) collect all the docume

Re: Find version of Lucene library

2005-03-09 Thread Erik Hatcher
+1 Erik On Mar 9, 2005, at 1:20 PM, Doug Cutting wrote: Andrzej Bialecki wrote: Hmmm... would not java.lang.Package various methods do the job? I'm not sure... I just tried to do Package.getPackage("org.apache.lucene") and got null, even though the manifest is present in the JAR. I looked

Re: identifier field as keyword or unindexed

2005-03-09 Thread Erik Hatcher
On Mar 9, 2005, at 10:09 AM, javier muguruza wrote: (I sent this to the old list, I dont know wether it reached the list...just in case I repost it) Hi all, We index our documents in the following way: doc = new Document(); // mailid doc.add(Field.UnIndexed("mid",mid));

Re: lucene index with structured fields

2005-03-09 Thread Nicolas Maisonneuve
thanks Miles, yes... i missed that the queryParser could transform a query.. but i don't like very much my idea: the integration is too high level. it would be great if a low level of integration will be possible because of the scorer. In fact the calcul of score will certainly more complex. Act

Re: Best Practices for Distributing Lucene Indexing and Searching

2005-03-09 Thread Doug Cutting
Yonik Seeley wrote: This strategy looks very promising. One drawback is that documents must be added directly to the main index for this to be efficient. This is a bit of a problem if there is a document uniqueness requirement (a unique id field). This is easy to do with a single index. Here's th

Re: large indexes

2005-03-09 Thread Doug Cutting
Scott Smith wrote: I have the need to create an index which will potentially have a million+ documents. I know Lucene can accomplish this. However, the other requirement is that I need to be continually updating it during the date (adding 1-30 documents/minute). Have a look at this thread: http:/

Re: Exception when attempting to access January 2005 archive

2005-03-09 Thread Barry Hawkins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry Hawkins wrote: [...] | ~I am trying to access the original announcement of the move to | Subversion so I can perform an anonymous checkout of the codebase. If | anyone has succeeded in that, I would appreciate any tips. My current | attempt

Re: Find version of Lucene library

2005-03-09 Thread Doug Cutting
Andrzej Bialecki wrote: Hmmm... would not java.lang.Package various methods do the job? I'm not sure... I just tried to do Package.getPackage("org.apache.lucene") and got null, even though the manifest is present in the JAR. I looked into this. The package name in the manifest is "org/apache/l

Exception when attempting to access January 2005 archive

2005-03-09 Thread Barry Hawkins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 List, ~I receive a stack trace indicating a Velocity template processing error when trying to access the Janary 2005 archive[0] for this list. The stack trace is appended to the end of this message. ~I am trying to access the original announceme

Re: lucene index with structured fields

2005-03-09 Thread Miles Barr
On Wed, 2005-03-09 at 18:29 +0100, Nicolas Maisonneuve wrote: > I would like use a index with structured search field. > > - flat index (lucene type) > searchfield1 > searchfield2 > searchffield3 > ... > -structured index > search1 >search2 > search4 >search3 > search5 > > to

Re: lucene index with structured fields

2005-03-09 Thread Nicolas Maisonneuve
oups .. 2- According to the table , a new Query is created with just non zero boost search field search2:coco^search2_boost search4:coco^search4_boost On Wed, 9 Mar 2005 18:53:41 +0100, Nicolas Maisonneuve <[EMAIL PROTECTED]> wrote: > hmm a idea would be to create dynamically a boost table (f

Re: lucene index with structured fields

2005-03-09 Thread Nicolas Maisonneuve
hmm a idea would be to create dynamically a boost table (field, boostvalue) in a extended version of a TermQuery depending on the field: ex: StructuredTermQuery ("search2", "coco") 1-> Update a boost table according to: * the virtual structure : > -structured index > search1 >search2 >

Unsubscribe?

2005-03-09 Thread Jerry Jalenak
The e-mail address for unsubscribing from the list appears to not be working. Can someone check on it? Jerry Jalenak Senior Programmer / Analyst, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This transmission (and any information attached to

lucene index with structured fields

2005-03-09 Thread Nicolas Maisonneuve
hy everybody, I would like use a index with structured search field. - flat index (lucene type) searchfield1 searchfield2 searchffield3 ... -structured index search1 search2 search4 search3 search5 to allow simple extensions of some search features: - the query TermQuery(

Re: Best Practices for Distributing Lucene Indexing and Searching

2005-03-09 Thread Yonik Seeley
This strategy looks very promising. One drawback is that documents must be added directly to the main index for this to be efficient. This is a bit of a problem if there is a document uniqueness requirement (a unique id field). If one takes the approach of adding docs to a separate lucene index

identifier field as keyword or unindexed

2005-03-09 Thread javier muguruza
(I sent this to the old list, I dont know wether it reached the list...just in case I repost it) Hi all, We index our documents in the following way: doc = new Document(); // mailid doc.add(Field.UnIndexed("mid",mid)); //body doc.add(Field.UnStored("body",

Re: QueryParser refactoring

2005-03-09 Thread Erik Hatcher
On Mar 9, 2005, at 7:40 AM, sergiu gordea wrote: Unfortunately I don't have a lucene project on my computer as this moment and I cannot check myself, do the tests for MultiFieldQueryParser also pass? I haven't tried it, though I'm sure it'd be fine since it relies on QueryParser. Since I have no

Re: QueryParser refactoring

2005-03-09 Thread Erik Hatcher
On Mar 9, 2005, at 7:25 AM, sergiu gordea wrote: transformations to be reversible (I mean something like Query => String => Query, with the constraint initial query equals final query). Ok ... I give up ... if this feature is to hard to be implemented, the soltution will be to work around in my

RE: SPAN QUERY [HOW TO]

2005-03-09 Thread Miles Barr
It's not clear what you're trying to achieve. PhraseQuery and SpanNearQuery can help you find tokens that are close to each other. It you're using the standard analyzer, tokens are words. They won't help you group documents under a topic. You should setup some other fields in your Lucene document

RE: SPAN QUERY [HOW TO]

2005-03-09 Thread Karthik N S
Hi Guys Apologies Some body Please Help me for this Form with regards Karthik -Original Message- From: Miles Barr [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 3:02 PM To: java-user@lucene.apache.org Subject: Re: SPAN QUERY [HOW TO] On Wed, 2005-03-09 at 14:52 +0530,

Re: QueryParser refactoring

2005-03-09 Thread sergiu gordea
Erik Hatcher wrote: On Mar 8, 2005, at 5:17 PM, Chris Hostetter wrote: Earlier in this thread... : >>> +a -> a : >> : >> Hmmm this is a debatable one. It's returning a TermQuery in this : >> case for "a". Is that appropriate? Or should it return a : >> BooleanQuery : >> with a single TermQu

Re: QueryParser refactoring

2005-03-09 Thread sergiu gordea
Chris Hostetter wrote: Earlier in this thread... : >>> +a -> a : >> : >> Hmmm this is a debatable one. It's returning a TermQuery in this : >> case for "a". Is that appropriate? Or should it return a : >> BooleanQuery : >> with a single TermQuery as required? : > Ok. : > The question how to

Re: QueryParser refactoring

2005-03-09 Thread sergiu gordea
Doug Cutting wrote: sergiu gordea wrote: So .. here is an example of how I parse a simple query string provided by a user ... the user checks a few flags and writes "test ko AND NOT bo" and the resulting query.toString() is saved in the database: +(+(subject:test description:test keywordsTerms:te

Re: Find version of Lucene library

2005-03-09 Thread Andrzej Bialecki
PA wrote: On Mar 09, 2005, at 11:30, Andrzej Bialecki wrote: I'm not sure... I just tried to do Package.getPackage("org.apache.lucene") and got null, even though the manifest is present in the JAR. Packages are only defined when their underlying class has been already loaded... http://alt.t

[OT] lucene dydoc

2005-03-09 Thread PA
Hello, Here is some dydoc for Lucene 1.4.3: http://alt.textdrive.com/assets/public/lucene-1.4.3/ org.apache.lucene.index.IndexWriter.cls.html The entire Lucene dydoc is available for download as well: http://alt.textdrive.com/assets/public/lucene-1.4.3.tar.gz dydoc is an alternative documentation

Re: Find version of Lucene library

2005-03-09 Thread PA
On Mar 09, 2005, at 11:30, Andrzej Bialecki wrote: I'm not sure... I just tried to do Package.getPackage("org.apache.lucene") and got null, even though the manifest is present in the JAR. Packages are only defined when their underlying class has been already loaded... http://alt.textdrive.co

Re: Find version of Lucene library

2005-03-09 Thread Andrzej Bialecki
PA wrote: On Mar 09, 2005, at 09:49, Andrzej Bialecki wrote: Besides, it doesn't work with WebStart, because the classpath is not accessible. Hmmm... would not java.lang.Package various methods do the job? I'm not sure... I just tried to do Package.getPackage("org.apache.lucene") and got null, e

RE: SPAN QUERY [HOW TO]

2005-03-09 Thread Karthik N S
Hi Guys Apologies.. Yes some similar concept in my head is thundering. I will be using a field 'text' for the same Can u guys please tell me using spanQuery or pahrse Query would do the job ,If so How to proceeed. Thx in advance Karthik -Original Message- From: Miles Barr [

Re: Remotely Stroring Index file

2005-03-09 Thread Miles Barr
On Wed, 2005-03-09 at 15:06 +0530, Natarajan.T wrote: > How to I store indexing files remotely. > > For example indexing process running in machine A, then HoHoI want to > store index files in machine B. There's no built in support in Lucene to have remote directories. You can do something at the

Re: SPAN QUERY [HOW TO]

2005-03-09 Thread Miles Barr
On Wed, 2005-03-09 at 14:52 +0530, Karthik N S wrote: > The new Feature of lucene 'span query' really is interesting > > But need expert suggestions on achieveing the same. > > I have 3 documents > > Document 1 contains = ELECTRONICS DIGITAL CAMERA > Document 2 contains = ELECTRONICS D

Remotely Stroring Index file

2005-03-09 Thread Natarajan.T
Hi, How to I store indexing files remotely. For example indexing process running in machine A, then HoHoI want to store index files in machine B. Regards, Natarajan.

SPAN QUERY [HOW TO]

2005-03-09 Thread Karthik N S
Hi  Guys Apologies..   The new Feature of lucene 'span query' really is interesting But need expert suggestions on achieveing the same. I have 3 documents Document 1 contains   =  ELECTRONICS  DIGITAL CAMERA Document 2 contains   =  ELECTRONICS  DIGITAL CAMERA 0PTICSDocument 3 co

Re: Find version of Lucene library

2005-03-09 Thread PA
On Mar 09, 2005, at 09:49, Andrzej Bialecki wrote: Besides, it doesn't work with WebStart, because the classpath is not accessible. Hmmm... would not java.lang.Package various methods do the job? Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ -

Re: Find version of Lucene library

2005-03-09 Thread Dawid Weiss
Can you do a Lucene.class.getResource("/META-INF/ and read the info from there manually? This should return JAR-relative URL and thus should work with Java WebStart. D. Andrzej Bialecki wrote: Bill Janssen wrote: The JDK comes with some classes that will let you get to that elegantly. You m

Re: Find version of Lucene library

2005-03-09 Thread Andrzej Bialecki
Bill Janssen wrote: The JDK comes with some classes that will let you get to that elegantly. You mean clumsily :-). Besides, it doesn't work with WebStart, because the classpath is not accessible. -- Best regards, Andrzej Bialecki ___. ___ ___ ___ _ _ __ [__ ||