search problem/odd results

2007-05-08 Thread John Powers
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

RE: search problem/odd results

2007-05-08 Thread John Powers
tually in there (which may surprise you depending upon what analyzers you are using). You can also see how queries parse using various 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

RE: search problem/odd results

2007-05-09 Thread John Powers
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 2

RE: search problem/odd results

2007-05-09 Thread John Powers
) 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

RE: search problem/odd results

2007-05-09 Thread John Powers
lto:[EMAIL PROTECTED] 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

synchronize hits variable?

2007-05-27 Thread John Powers
In a j2ee webapp we have a search object that stores a user's search preferences (items/page, detail level, etc). it has a search() that calls a static method getSearcher() that returns a static IndexSearcher that all these user search objects use.searching with that gives us a Hits object tha

RE: synchronize hits variable?

2007-05-28 Thread John Powers
uld change 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.ap

RE: synchronize hits variable?

2007-05-29 Thread John Powers
a bad habit and look 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 >

hitcollector

2007-05-30 Thread John Powers
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 ins

np-pandock search problem (again, with more detail)

2007-06-07 Thread John Powers
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 ge

Items in multiple category: distinct search?

2005-11-15 Thread John Powers
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 show it once, but maybe (not required) show what categories the

Re: Items in multiple category: distinct search?

2005-11-15 Thread John Powers
". Thinking of it > in terms of SQL constructs makes it more difficult than it needs to be. > > Hope this helps. > > > > On 11/15/05, John Powers <[EMAIL PROTECTED]> wrote: >> >> Hello, I have done a search for this issue, but I didnt really see an >

How does lucene choose a field for sort?

2005-11-21 Thread John Powers
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

Custom sort/basic question

2005-11-21 Thread John Powers
If I add keywords to a document at the same time, will they stay in that order? Create New doc A doc.add(Field.Text("category", "toys")); doc.add(Field.Text("sequence", "235")); doc.add(Field.Text("category", "bears")); doc.add(Field.Text("sequence", "63")); doc.add(Field.Text("category", "truc

Re: Case Study

2005-11-22 Thread John Powers
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 fail

Re: Lucene and Web Context

2005-11-22 Thread John Powers
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

Re: Searching Textile Documents

2005-11-23 Thread John Powers
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

Wildcard

2005-12-02 Thread John Powers
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

Re: lucene and database searching, keeping score

2005-12-02 Thread 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

Basic lucene usage

2005-12-06 Thread John Powers
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 actuall

ParseQuery with quotes

2005-12-20 Thread John Powers
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("\"

Re: ParseQuery with quotes

2005-12-20 Thread John Powers
change 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 >&g

RE: Basic lucene usage

2005-12-22 Thread John Powers
exSearcher 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 Powe

RE: Basic lucene usage

2005-12-22 Thread John Powers
lto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 3:09 PM To: java-user@lucene.apache.org Subject: RE: Basic lucene usage -Original Message----- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 3:40 PM To: java-user@lucene.apache.org Subject: RE: Basic lucene

Public List Hits.subList(int, int)

2005-12-31 Thread John Powers
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 al

RE: indexreader refresh

2006-01-04 Thread John Powers
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 [mailto:[E

RE: searching and indexing simultaneously...

2006-01-05 Thread John Powers
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 multipl

best practices

2006-01-17 Thread John Powers
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 el

RE: best practices

2006-01-17 Thread John Powers
e I said, if this is wiki is it, perfect!Maybe it is what I was thinking of. -Original Message- From: Pasha Bizhan [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 11:38 AM To: java-user@lucene.apache.org Subject: RE: best practices Hi, > -----Original Message- &

RE: Why we use Lucene for Database search like Oracle / Sybase ?

2006-01-17 Thread John Powers
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

RE: Storing large text or binary source documents in the index and memory usage

2006-01-20 Thread John Powers
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: java-user@lucene.a

problem updating a document: no segments file?

2006-01-26 Thread John Powers
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, it

RE: problem updating a document: no segments file?

2006-01-27 Thread John Powers
The lucene info is: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.1 Created-By: Apache Jakarta Name: org/apache/lucene Specification-Title: Lucene Search Engine Specification-Version: 1.4.3 Specification-Vendor: Lucene Implementation-Title: org.apache.lucene Implementation-Version: build 2004-

RE: problem updating a document: no segments file?

2006-01-27 Thread John Powers
this code works in a couple other boxes as is.that deleting code removes the active index after this one builds in a different location. then the searcher is told to make this newest one the current and the old one is deleted. it effects directories and their entire contents. it would

RE: problem updating a document: no segments file?

2006-01-28 Thread John Powers
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 n

RE: problem updating a document: no segments file?

2006-01-29 Thread John Powers
this problem.so, live and learn! -----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 f

RE: Queries not derived from the text index

2006-02-08 Thread John Powers
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 su

fitler vs query

2006-02-21 Thread John Powers
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.Is there any difference/advantage to separating out the "filter" part of my query into a proper filter in lucene or does it just add requirements the same to

RE: get results by relevance, limiting results and then sort the results by some criterion

2006-02-21 Thread John Powers
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 document

RE: get results by relevance, limiting results and then sort the results by some criterion

2006-02-21 Thread John Powers
any cameras in the search results, but at the same time we dont mind if a few cameras do not appear in those results if we can really fine tune 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 haven

RE: fitler vs query

2006-02-21 Thread John Powers
ache Otis - 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

RE: get results by relevance, limiting results and then sort the results by some criterion

2006-02-21 Thread John Powers
sings 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 taken ca

RE: IndexSearcher

2006-02-22 Thread John Powers
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: java-user@luc

RE: IndexSearcher

2006-02-22 Thread John Powers
-Gus -Original 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?

RE: Hacking proximity search: looking for feedback

2006-02-28 Thread John Powers
I don't know if this matters, but we do all of our geolocating in sql with decent speed. All the trig is in the query itself and then we can limit top 5, top 10 etc for what we show.Is the data such that you need lucene?Can I ask what causes it to be beyond a databases ability? -Orig

RE: 100,000 indexes and what to do

2006-03-13 Thread John Powers
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.

hypens

2006-04-17 Thread John Powers
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-12

RE: hypens

2006-04-18 Thread John Powers
ot; and searched. U will find the result.. Similarly for 12412-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, Apri

can't delete

2006-05-11 Thread John Powers
If I search on id:test bbb in luke I find some items. If I do a ir.delete(new Term(IDENTITY, id)) I get records changed is zero..and those records aren't deleted I do a print of new Term(IDENTITY, id) and it comes out with id:test bbb What am I missing?