RE: Building easy to use search guis? How to save queries...

2006-07-17 Thread Dejan Nenov
Michael - Please take a look at our MakeTime UI here: http://www.maketime.com It is in fact Lucene on the back end - albeit very hard to tell :) Dejan -Original Message- From: Michael Prichard [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 8:00 PM To: java-user@lucene.apache.org

Re: Building easy to use search guis? How to save queries...

2006-07-17 Thread marbux
Isys desktop search does something along the lines of what you speak of. There's a screen shot of the UI on this page: < http://www.llrx.com/features/isys2.htm>. The art is a bit too small to read, but the UI displays the resulting command line as the user builds a query (small type in lower left

Building easy to use search guis? How to save queries...

2006-07-17 Thread Michael Prichard
Not sure if anyone out is doing this, thought about doing this or is just plain curious. I want to figure out a way to build a search/rule gui's whereas the user can build searches much like building rules in some mail clients such as outlook or thunderbird. For example, the user could use dro

Re: Question regarding URL encoding

2006-07-17 Thread Chris Hostetter
it sounds like you may be confused by a couple of differnet things: 1) you are getting a parse exception bcause the '"' character is meaningful to the query parser ... it thinks you are trying to do a phraes search but you haven't finished the phrase, try escaping it with \" 2) just because you

Re: Problems with QueryParser

2006-07-17 Thread Rafael Rossini
Ok, thanks a lot. On 7/17/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: : I´m using lucene 2.0.0 and I would like to generate a BooleanQuery from a : QueryParser. The problem is that when I parse a query like this: "(rafael : todor rossini)~2" the property of the BooleanQuery , : minimumNumber

Re: Problems with QueryParser

2006-07-17 Thread Chris Hostetter
: I´m using lucene 2.0.0 and I would like to generate a BooleanQuery from a : QueryParser. The problem is that when I parse a query like this: "(rafael : todor rossini)~2" the property of the BooleanQuery , : minimumNumberShouldMatch is not setted properly. Is there a way of doing : that? if i rem

RE: PrefixQuery rewrite() bug, ignores max clause count

2006-07-17 Thread Chris Hostetter
: I understand the concern for resources, but by throwing an exception you : have also preempted a legitimate query. How then should one go about : performing a query for all document where a field begins with char X? that's the rub .. the "legitimacy" of the query is based on the index it is ex

Question regarding URL encoding

2006-07-17 Thread Van Nguyen
I'm trying to search my index using this search phrase: 1" That returns zero search results and throws a ParseException: Lexical error at line... I can see that 1" is part of that particular document by searching that same document using a different search term. How should the Lucene in

Re: question about custom sort method

2006-07-17 Thread Yonik Seeley
On 7/17/06, Aleksey Serba <[EMAIL PROTECTED]> wrote: Yonik, thank you for your suggestion, we use solr codebase already :) To tell the truth, first time i thought this is solr caching problem ( i've modify SolrIndexSearcher to get lucene Searcher and search directly without any solr caching ) I

Re: Part of Index (spezial Field) into Memory

2006-07-17 Thread Yonik Seeley
On 7/17/06, neils <[EMAIL PROTECTED]> wrote: a, ok i understand. So when i loop thru my Databasetable i write two indicies the same time. One for the name index, one for the other field in table. in that way i add documents to the same time in both indicies and so they have to some document

Re: Part of Index (spezial Field) into Memory

2006-07-17 Thread neils
a, ok i understand. So when i loop thru my Databasetable i write two indicies the same time. One for the name index, one for the other field in table. in that way i add documents to the same time in both indicies and so they have to some documentidentifiert right ? Thanks a lot :-)) --

Re: Part of Index (spezial Field) into Memory

2006-07-17 Thread Yonik Seeley
On 7/17/06, neils <[EMAIL PROTECTED]> wrote: 1. With ID, Name 2. With ID, Forename, Street, Phonenumber When i perform query with parallelreader how do lucene gets the concurrent documents which results of both indices? Do i have to specifie somewhere that the "ID"field is the relation??? It's

Re: Part of Index (spezial Field) into Memory

2006-07-17 Thread neils
Ok, that sound really good. But something is not really clear to me and maybe you can bring up a little light in the dark :-)) I have two indicies now: 1. With ID, Name 2. With ID, Forename, Street, Phonenumber When i perform query with parallelreader how do lucene gets the concurrent documents

Re: Part of Index (spezial Field) into Memory

2006-07-17 Thread Yonik Seeley
First, unless you know that the Name field being on disk is a bottleneck, start simple. Put everything in a single index. If you really need the "Name" part to be entirely in memory, then create two indicies, one with all of your fields except Name and another with Name only. Then load the Name

Re: Part of Index (spezial Field) into Memory

2006-07-17 Thread neils
Hm, so if following is possible than it would be great: I have a table in SQL-Database with following columns: ID, Name, Forename, Street, Phonenumber. So i would make index for each column (ID will included in all indizies). After this i have 4 indicies. Name (in memory), Forename (on Disk),

Re: Part of Index (spezial Field) into Memory

2006-07-17 Thread Yonik Seeley
Maybe separate indicies in conjunction with ParallelReader? -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server On 7/17/06, neils <[EMAIL PROTECTED]> wrote: Hi, i have a bigger index with around 10 GB. The most used field is the "Name"-Field. So is there way to

Part of Index (spezial Field) into Memory

2006-07-17 Thread neils
Hi, i have a bigger index with around 10 GB. The most used field is the "Name"-Field. So is there way to put a part of the index (maybe a special field) into memory and the rest on disk ? Thanks, Neils -- View this message in context: http://www.nabble.com/Part-of-Index-%28spezial-Field%29-int

Re: question about custom sort method

2006-07-17 Thread Aleksey Serba
Erik, I think Brian have the problem with continuous caching the same sorting values, i.e. he has a few points to calc distance from. In such case you can implement equals and hashCode methods based on point value and you'll have one cached comparator per different center point value. On 7/17/0

Re: question about custom sort method

2006-07-17 Thread Erik Hatcher
There is a known issue with the DistanceComparatorSource in the "Lucene in Action" source code: Maybe this advice will help fix the issue you're having? Erik On Jul 17, 2006, at 9:54 AM, Aleksey Serba wrote:

Problems with QueryParser

2006-07-17 Thread Rafael Rossini
Hi all, I´m using lucene 2.0.0 and I would like to generate a BooleanQuery from a QueryParser. The problem is that when I parse a query like this: "(rafael todor rossini)~2" the property of the BooleanQuery , minimumNumberShouldMatch is not setted properly. Is there a way of doing that? thanks i

Re: question about custom sort method

2006-07-17 Thread Aleksey Serba
Hi! Peter, I have exactly the same situation described below. - I have DistanceComparatorSource to sort results by distance from specified spatial coordinates point. Point is different for each query. - I do not close Searcher after each query. - I get "java.lang.OutOfMemoryError: Java heap space

Re: MultiField Query

2006-07-17 Thread Michael D. Curtin
Erick Erickson wrote: I'm pretty sure your problem is Query q = new BooleanQuery... should be BooleanQuery q = new BooleanQuery... Good catch! That's why the add() method is barfing. The parse() thing, though, is probably a change to the QueryParser interface for 2.0. --MDC --

RE: PrefixQuery rewrite() bug, ignores max clause count

2006-07-17 Thread Russell M. Allen
: 1) colorzing your mail doesn't play nicely with the mailing list ... : sending "diffs" is the prefered way to show potential changes to the code. So I discovered on sending the message. :) : 2) assuming i understand what it is you've changed, you've "worked arround" the TooManyClausesException

Re: MultiField Query

2006-07-17 Thread Erick Erickson
P.S. Are you sure you're looking at the 2.0 docs? I don't see any Query.parse(String, String, Analyzer) in the 2.0 docs. Rather, I see QueryParser(String field, Analyzer analyzer) and a non-static method parse(String parse). Best Erick

Re: MultiField Query

2006-07-17 Thread Erick Erickson
I'm pretty sure your problem is Query q = new BooleanQuery... should be BooleanQuery q = new BooleanQuery... Best Erick

Re: MultiField Query

2006-07-17 Thread Michael D. Curtin
[EMAIL PROTECTED] wrote: When I try this ( using Lucene 2.0 API ) I get the error: "..The method parse(String) is not applicable for arguments (String, String, StopAnalyzer) ... When I try this I get the error: The method add(TermQuery, BooleanClause.Occur) is undefined for type Query Could th