Hello
I've asked before on this issue, and I think I have more information
now.
I have in a lucene 1.4 index, some Field.Text fields stored.I've
been focusing on the one called name
In luke 0.7 , run on the command line from a jar, if I do a search for
Name:np-pandock* I get
Thanks to the hitcollector suggestion. It worked very well!we
have such a small index, but the categories are complicated, sequenced
and can be related in various ways that their structure is very
important to the users.so now I can get a list of used categories
with a hitcollector
into HitCollector.
- Mark
John Powers wrote:
Thanks for the response. Its definitely the user search object's
search(). I have to iterate through all the hits that come back to
get
all the categories used in the results, so the number that hits gets
really doesn't matter--ill need them all
it in the sources, recompile, redeploy, and see if that helps
you.
Otis
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/ - Tag - Search - Share
- Original Message
From: John Powers [EMAIL PROTECTED]
To: java-user@lucene.apache.org
Sent: Sunday, May
Yes, it doesn't work. it gives an error modal dialog box that says
IMPL.
-Original Message-
From: Daniel Naber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 4:45 PM
To: java-user@lucene.apache.org
Subject: Re: search problem/odd results
On Tuesday 08 May 2007 23:42, John
)
at java.awt.EventDispatchThread.run(Unknown Source)
IMPL
-Original Message-
From: Daniel Naber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2007 3:27 PM
To: java-user@lucene.apache.org
Subject: Re: search problem/odd results
On Wednesday 09 May 2007 16:17, John Powers wrote
]
Sent: Wednesday, May 09, 2007 4:22 PM
To: java-user@lucene.apache.org
Subject: Re: search problem/odd results
John Powers wrote:
java.lang.NoSuchFieldException: IMPL
at java.lang.Class.getDeclaredField(Unknown Source)
That's a strange one ... Which version of Lucene are you using
I don't understand why I'm getting the results I'm getting.
If I search for pandock* I get 6 results
Np-pandock
Np-pandock-L
Np-pandock-1
Np-pandock-2
Np-pandock
Np-pandock-L1
If I search for np-pandock I get
Np-pandock
Np-pandock-L
If I search for pandock I get
Np-pandock
analyzers. Which may also surprise you.
Best
Erick
On 5/8/07, John Powers [EMAIL PROTECTED] wrote:
I don't understand why I'm getting the results I'm getting.
If I search for pandock* I get 6 results
Np-pandock
Np-pandock-L
Np-pandock-1
Np-pandock-2
Np-pandock
Np-pandock-L1
If I
-235, 12412-121, 12412-etc , indexed as
12412,12412235,235 etc
So obviously it will find 12412 search term.
Good luck,
Jelda
-Original Message-
From: John Powers [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 6:59 PM
To: java-user@lucene.apache.org
Subject: hypens
Hello
Hello,
If I have a user search for b-trunk I would like them to be able to
find b-trunk (with hypen). I would also like someone searching for
b trunk to also find b-trunk.
On the other side, if someone searches for 12412 I would like them to be
able to find 12412-235, 12412-121,
How does the information change in each of these customer's documents?
I would think if they were very dynamic then updates to the single index
would not be great for you. But if the updates were just now and then,
then given the performance of lucene that the single index would be just
fine.
This doesn't really address your question, but...
Once you have the single indexsearcher, do you need any others? Could
your app just use the single instance?
-Original Message-
From: Gus Kormeier [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 11:28 AM
To:
Message-
From: John Powers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 9:35 AM
To: java-user@lucene.apache.org
Subject: RE: IndexSearcher
This doesn't really address your question, but...
Once you have the single indexsearcher, do you need any others? Could
your app just use
I'm sure you've taken care of this, but I am curious myself:
If the 301 document only has a single term batteries (and thus is so
far low on the Hits), but has a price of seven cents, then the sort of
all the documents with batteries would put this near the top, but by
eliminating all documents
our search results to
only show cameras and not camera casings and camera batteries etc.
I have been looking at QueryFilter and the Sort API, but havent yet
figured out a way to do what I am trying to do .. any pointers are
greatly appreciated.
-Thanks,
John Powers wrote:
I'm sure you've
- Original Message
From: John Powers [EMAIL PROTECTED]
To: java-user@lucene.apache.org
Sent: Tue 21 Feb 2006 10:31:49 AM EST
Subject: fitler vs query
Hello,
Before I learned about filters in lucene I was building my initial query
as a stringbuffer and then I use that with a queryparser
am trying to do .. any pointers are
greatly appreciated.
-Thanks,
John Powers wrote:
I'm sure you've taken care of this, but I am curious myself:
If the 301 document only has a single term batteries (and thus is
so
far low on the Hits), but has a price of seven cents, then the sort
This may be a tangent, but for my filters and searches, I construct the
query with + and - and what not.. is this not the right way to do
this?I haven't had to extend or write any special AND or OR classes,
I just write the query and search the once. Any advantage to writing
Filter
!
-Original Message-
From: John Powers [mailto:[EMAIL PROTECTED]
Sent: Sat 1/28/2006 9:13 PM
To: java-user@lucene.apache.org
Subject: RE: problem updating a document: no segments file?
i feel confident in the delete sequence. i will run the things you ask for
though.this does work on my
i feel confident in the delete sequence. i will run the things you ask for
though.this does work on my laptop.
the code that changed was some update method that was used in the first
release. so before the only writes needed were done by this and it wholesale
replaces. whereas the
();
}
subDirs[i].delete();
}
}
}
}
-Original Message-
From: John Powers [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 26, 2006 9:07 PM
To: java-user@lucene.apache.org
Subject
Hello,
I have a couple instances of lucene. I just altered on implementation and now
its not keeping a segments file. while indexing occurs, there is a segment
file.but once its done, there isn't.all the other indexes have one.
the problem comes when i try to update a document,
Are these super large files supposed to be searchable?
Can the binary files be stored somewhere else and just pointed to?
Can the text files be broken up?
-Original Message-
From: George Washington [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 19, 2006 10:52 PM
To:
Hia
Is there any repository of best practices? Does LIA represent that?
I was thinking about a blog or something that everyone could post their
solutions into.I've written only 4 implementations of lucene, but
each was so very different, I was thinking it might be nice to know what
everyone
Would you say as a best practice that you can use both?When would
you and when wouldn't you? I trust databases more then free files, so I
am putting my more sensitive and volatile data in the database. If you
built a commenting system.. like a blog or an flickr type app, would
just a lucene
But its best to only have one reader/searcher, correct?
-Original Message-
From: Ramana Jelda [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 9:08 AM
To: java-user@lucene.apache.org
Subject: RE: searching and indexing simultaneously...
Hi,
You are right. There can be
Ya, you'll want to close and open your open searcher.
I have the indexer create random directories to work in. then when the
indexing is done it assigns the searcher a new location and fires off
the close/open command to the searcher.
-Original Message-
From: Amol Bhutada
Hello,
What does everyone think about adding a subList(int, int) method to the Hits
class? In all the lucene implementations I usually end up needing a small
section for pagination of the results. So I go from X to Y and put them in
a List and return the List of Documents. Since I seem to
instance. No problems with multiple searches on the same
IndexSearcher.
You can index while searching, as soon as you want the new entries to be
found by the IndexSearcher, just get a new instance of IndexSearcher
Aviran
http://www.aviransplace.com
-Original Message-
From: John Powers [mailto
I would like to be able to search for 19 inches with the quote. So I get a
query like this:
Line 1: +( (name:19*^4 ld:19*^2 sd:19*^3 kw:19*^1) )
That won't work, so I wanted to escape the quotes.The docs said to use a
backslash. So I'm doing this:
luceneQuery.toString().replaceAll(\,
the analyzer or take the quote out of the query?
Correct?
On 12/20/05 12:07 PM, Yonik Seeley [EMAIL PROTECTED] wrote:
On 12/20/05, John Powers [EMAIL PROTECTED] wrote:
I would like to be able to search for 19 inches with the quote. So I get a
query like this:
Line 1: +( (name:19*^4 ld:19*^2 sd:19
Am I correct in assuming that I can use lucene by itself as a search engine
in a website? If each user session is looking at the fsdirectory and
searching on it, is that ok? Or do I need to put in a queue or pool that
handles searching it; only allowing the one thing application-wide to
Hello,
Lucene only lets you use a wildcard after a term, not before, correct?
What work arounds are there for that?
If I have an item 108585-123
And another 332323-123
How can I look for all the -123 family of items?
John Powers
Instead of just putting the keys in the index, can you put all the data you
might be getting out to display to the user, or whatever the final thing is?
That's what we do.Search on the id as you are, and then the hit has
documents that are loaded with all your final information instead of just
The short answer is there is a great highlighter example in the Lucene In
Action book. It sounds like you may just want to use that really. What
with the snippets and html.
On 11/23/05 1:30 PM, Alan Chandler [EMAIL PROTECTED] wrote:
I am a brand new newbie with respect to Lucene, and I am
You have a case study using lucene? I would be interested in look at it if
you don't mind. I am putting lucene into an application for my company
currently.
Thank You.
--jN
On 11/22/05 10:18 AM, Supreet Sethi [EMAIL PROTECTED] wrote:
Its sort of case study. Including successes and failures
session.getServletContext().getRealPath(/) + data/lucene
On 11/22/05 12:49 PM, krg9263 [EMAIL PROTECTED] wrote:
I am very new to Lucene.
Does anyone have an example of a Lucene IndexWriter whose path is relative
to a context path? All of the examples I have seen place it outside the web
If I sort on a field called sequence, but at document creation time I add in
//create doc A
doc.add(Field.Text(sequence, 32));
doc.add(Field.Text(sequence, 3));
doc.add(Field.Text(sequence, 932));
//create doc B
doc.add(Field.Text(sequence, 1));
doc.add(Field.Text(sequence, 300));
.
On 11/15/05, John Powers [EMAIL PROTECTED] wrote:
Hello, I have done a search for this issue, but I didnt really see an
answer.
if i want to store things in a hierarchy, but i want items to be in
multiple
categories at any level. i'd like to be able to search for an item and
only
40 matches
Mail list logo