I have a question about DateTools conversions. I am having trouble with
results of trying to store a date truncated to DAY resolution.
Here is an example.
OK:
DateTools.stringToDate(DateTools.dateToString(new Da
On 22/08/06, Mag Gam <[EMAIL PROTECTED]> wrote:
Does anyone have a simple Tomcat search/result example? I have 4 text files,
i would like to index.
There's a demonstration war file included with lucene.
--
Cheers,
Hasan Diwan <[EMAIL PROTECTED]>
---
Erik,
What is generally the reason for indexing both individual fields, and the
general-purpose "content" field ?
Also, if we search in the general-purpose "content" field, wouldnt this
problem occurs. Let say we have 2 fields and the following values:
name : John Smith
food : subway sandwich
Very good advice!
With the previous code you gave me, I was able to get everything for 2.0!
good call!
On 8/23/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
On Aug 23, 2006, at 8:45 PM, Mag Gam wrote:
> I am looking at this page
> http://today.java.net/pub/a/today/2003/11/07/QueryParserRules.
On Aug 23, 2006, at 8:45 PM, Mag Gam wrote:
I am looking at this page
http://today.java.net/pub/a/today/2003/11/07/QueryParserRules.html
Any chance there is a new version for 2.0? Or are there any 2.0
examples
(other than the stock example)?
No, that article has not been updated for the 2.
On Aug 23, 2006, at 11:36 AM, Suba Suresh wrote:
In "Lucene In Action" book it says it is better practice to combine
two fields into one field and index it than use the
MultiFieldQueryParser. Do I initially index both the fields and
then index them again together? When I index them together
Hi Erik, thanks for the quick reply
I am looking at this page
http://today.java.net/pub/a/today/2003/11/07/QueryParserRules.html
Any chance there is a new version for 2.0? Or are there any 2.0 examples
(other than the stock example)?
On 8/23/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
On A
On Aug 23, 2006, at 7:24 PM, Mag Gam wrote:
I am trying to do a Query parse line in a doGET method (J2EE).
I keep getting this type of message;
unreported exception org.apache.lucene.queryParser.ParseException;
must be
caught or declared to be thrown
Anyone have an example of a Class being
Hi All,
I am trying to do a Query parse line in a doGET method (J2EE).
I keep getting this type of message;
unreported exception org.apache.lucene.queryParser.ParseException; must be
caught or declared to be thrown
Anyone have an example of a Class being thrown an exception?
I would kindly app
Thanks for the response Erik! You make a good point. I have the 'Lucene in
Action' book, and it has some good ways of doing things...its at work now (I
am away for 3 weeks), thats the only bad thing :-(
On 8/23/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
On Aug 23, 2006, at 5:18 PM, Mag Gam
On Aug 23, 2006, at 5:18 PM, Mag Gam wrote:
So, when working with Tomcat, for a simple Index + Search, it is
recommend
to use JSP over servlets?
any advice?
No such recommendation would ever officially come from the Lucene
community. Lucene is entirely independent of how search results g
Mark --
Don't lose hope! We are migrating from Verity to Lucene, and I know for
a fact that we will have to support the kind of complex queries you talk
about; maybe not /quite/ as complex as your magnificent:
cop | fowl & (fowl | priest & man) ! helicopter ~8 (hillary | tom)
but certainly mo
Thanks!
So, when working with Tomcat, for a simple Index + Search, it is recommend
to use JSP over servlets?
any advice?
On 8/23/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: > Does anyone have a simple Tomcat search/result example?
: > I have 4 text files,
: > i would like to index.
You are not kidding. I keep finding this tougher and tougher. Originally
my method worked for most simple queries, but not all. I improved it to
cover some more ground, allowing some modestly complex queries, but now
even that improvement seems woefully inadequate for solving the general
case.
: package. By implementing new type of tuple (Query,Weight,Scorer) I can
: easily implement new Scoring technique. Unfortunatly Lucene index shows that
: it stores only TF / Position vectors for each term within document.
: I am interested in investigating new scoring technique where I w
Indeed - you bring up interesting questions. You may want to take a look at
NUTCH first, however - I am not sure if they have done some of the
Google-like ranking you mention.
However - collaborative relevance enhancement, based on user feedback, would
be a nice Web-2.0-ish feature to bake into th
In "Lucene In Action" book it says it is better practice to combine two
fields into one field and index it than use the MultiFieldQueryParser.
Do I initially index both the fields and then index them again together?
When I index them together do I index the fieldnames or values? Can
someone giv
I have this application where I indexed different file formats and used
"phraseQuery" on the "body" of the documents to do the search. Now I
have added email archives to the index. I have to use
"TermQuery/MultiFieldQuery" to search the emails. For a user entered
query I have to search both th
I have a similar interest in specifying a custom scoring strategy. I
previously posted about it under the subject "Scoring a document
(count?)" on 7/27/06. In brief, I want a documents score to be a count
of term matches. This is nearly identical to a SQL count()
functionality.
If you are able
On Aug 23, 2006, at 8:30 AM, sachin wrote:
Hello Great/smart guys
This is my first question for this group as I started
working on the Lucene last month.
Lucene provide the scoring of documents based on TF-IDF
vector analysis. Lucene also provides the Scorer and Weight i
Hello Great/smart guys
This is my first question for this group as I
started working on the Lucene last month.
Lucene provide the scoring of documents based
on TF-IDF vector analysis. Lucene also provides the Scorer and Weight inside
the Search package. By implementin
On Aug 23, 2006, at 6:22 AM, WATHELET Thomas wrote:
If I want to add a new field for exemple into an existing index
Documents in Lucene are heterogeneous, with fields being defined per
document not per index. You can introduce a new field on a new
document at any time. There is currently
If I try to add documents to an index while a reader is open I get en error message
saying "Cannot delete C:\myindex\_3n.f0". I suspect that this is due to the
fact that the windows fs won't allow deletion of a file when there is a filehandler
connected to it. The solution I have at the momen
If I try to add documents to an index while a reader is open I get en error
message saying "Cannot delete C:\myindex\_3n.f0". I suspect that this is due to
the fact that the windows fs won't allow deletion of a file when there is a
filehandler connected to it. The solution I have at the moment i
Thanks Hoss. I apologize for being slightly off topic. Instead of
using Solr, I am trying to steal from it, and so Lucene was still
mostly what was on my mind :) I posted too soon as well because I
finally found the wiki page on caching at Solr's site.
I have just implemented the "warm a ne
If I want to add a new field for exemple into an existing index
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: 23 August 2006 11:57
To: java-user@lucene.apache.org
Subject: Re: Change index structure
On Aug 23, 2006, at 3:50 AM, WATHELET Thomas wrote:
> Is it pos
Yes it is possible. Only UNSTORED fields became UNSTORED again and You
cannot change TERM in them.
If you have SQL db I have neat code to doing this.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
On Aug 23, 2006, at 3:50 AM, WATHELET Thomas wrote:
Is it possible to change index structure in an existing index.
If yes how to proceed.
Please elaborate on what you mean by "index structure". Lucene
supports incremental indexing, if that is what you mean - so you can
always add/delete d
On Aug 22, 2006, at 6:23 PM, Mag Gam wrote:
Hi All,
I am getting into Java + Lucene. To compile a Lucene program
CreateIndex.java
public class CreateIndex {
// usage: CreateIndex index-directory
public static void main(String[] args) throws Exception {
String indexPath = args[0];
Inde
: It looks like Solr does not use a simple cached queryfilter as a query
: cache. Why is this? Is a cache queryfilter not efficient enough? Is this
: alternate method just so you can easily load the cache from an old
: Searcher to a new Searcher? Any info appreciated.
This would probably be bette
: program at ApacheCon 2006. The Solr talk looks interesting.
Why thank you :)
: I was wondering if there have been any other self/semi-organized things
: around Lucene in the past, like a BOF?
This will be my first ApacheCon, so i can't speak to what's happened in
the past -- but I'm certainly
Hi Thomas,
> Is it possible to update fields in an existing index.
> If yes how to proceed.
>
I think you can only delete a document and then reindex the updated
document:
public static int delTitle(String ID) {
try {
return writer.deleteDocuments(new Term("ID",ID))
: > Does anyone have a simple Tomcat search/result example?
: > I have 4 text files,
: > i would like to index.
take a look at the geting started guide, and the demo WAR that comes with
the Lucene distribution...
http://lucene.apache.org/java/docs/gettingstarted.html
-Hoss
Is it possible to change index structure in an existing index.
If yes how to proceed.
Is it possible to update fields in an existing index.
If yes how to proceed.
Mag Gam wrote:
Hi All,
Does anyone have a simple Tomcat search/result example?
you mean like the war file of Nutch?
Michi
I have 4 text files,
i would like to index.
Thanks
--
Michael Wechner
Wyona - Open Source Content Management -Apache Lenya
http://www.wyona.com
36 matches
Mail list logo