Re: Plus factor in returned results

2006-08-02 Thread Chris Hostetter
if i'm understanding you, you have a set of additional criteria A,B,C,etc..., and it's required that any one of the criteria match (in addition to the textual input) but each of the criteria has a differnet importance (A is better then B is better then C) I think what you want is to just build a

Re: Search with accents

2006-08-02 Thread Eduardo S. Cordeiro
But was your index created with BrazilianAnalyzer? Because otherwise you wouldn't have portuguese stopwords eliminated, like "e", "ou", etc. 2006/8/2, Leandro Saad <[EMAIL PROTECTED]>: Hi Eduardo. I'm using the StandardAnalyser and I can search for words with accents. In my case "saúde" -- Lean

Re: Indexsearcher - one instance in PHP via javabridge?

2006-08-02 Thread Michael Imbeault
Wow thanks, this is such a good answer that I wasn't expecting that much :-) It looks like it could resolve all my problems at once! Thanks a lot! Mike Chris Hostetter wrote: : I'm trying to follow these instructions, but I have zero experience with : Java, JVMs, Tomcat, etc. Could somebody h

Re: Fastest Method for Searching (need all results)

2006-08-02 Thread Ryan O'Hara
eks dev, The most best way of looping through all results that I have come across is using a HitCollector and grabbing the field values via FieldCache. This is under two conditions: 1) The FieldCache arrays are initialized only once, since creating these arrays creates serious overhead,

Plus factor in returned results

2006-08-02 Thread Ken Kinder
I'd like to start with a standard parsed query, then combine it with another that says requires a field's untokenized value be inside of a set. The catch is, I want the document's position in that set to be included in the scoring. So I want to search for "chinese restaurant", but only for these

Re: Filters or BooleanQuery

2006-08-02 Thread Chris Hostetter
: I could easily go through and add query's but I have a feeling I should : use a filter somewhere. What are the best practices when deciding what : to do? the list archives will have a lot of discussion on this (mainly along the lines of "should i use a Filter?" in general the deciding factors

Re: dash-words

2006-08-02 Thread Chris Hostetter
: with a query like this +arbeiterjugend +west-berlin I get no results. : : org.apache.lucene.queryParser.QueryParser.parse makes this query (with : WordDelimiterFilter) with Default QueryParser.AND_OPERATOR: : : +titel:arbeiterjugend +titel:"west (berlin westberlin)" : : with +arbeiterjugend +west

Re: scoring formula

2006-08-02 Thread Erik Hatcher
Please disregard my previous quick reply as I did not fully read your message before replying. *ugh* Erik On Aug 2, 2006, at 2:32 PM, Zhao, Xin wrote: Hi, I noticed the scoring formula in the errata of book "Lucene in Action" is a little different from the one in Javadoc. I enclos

Re: scoring formula

2006-08-02 Thread Erik Hatcher
Xin, You're correct. This was noted as an errata here: www.lucenebook.com/blog/errata/2005/01/24/scoring_formula_omission.html> All other known errata is here: (and searchable via Lucene, as in

scoring formula

2006-08-02 Thread Zhao, Xin
Hi, I noticed the scoring formula in the errata of book "Lucene in Action" is a little different from the one in Javadoc. I enclosed the one in Javadoc at the end of email. getBoost(t in q) is in Javadoc's formula (which I assume is the correct one), but not in "lucene in action". Any idea? We n

Re: wildcards and spans

2006-08-02 Thread Erick Erickson
I'm almost entirely certain that any value I choose for setMaxClauseCount is going to be wrong, but I might give it a try. Erick On 8/2/06, Paul Elschot <[EMAIL PROTECTED]> wrote: On Wednesday 02 August 2006 17:29, Erick Erickson wrote: > I'm back, with another flavor of wildcards. What direct

Re: Search with accents

2006-08-02 Thread Leandro Saad
Hi Eduardo. I'm using the StandardAnalyser and I can search for words with accents. In my case "saúde" -- Leandro Rodrigo Saad Cruz CTO - InterBusiness Technologies db.apache.org/ojb guara-framework.sf.net xingu.sf.net On 8/1/06, Eduardo S. Cordeiro <[EMAIL PROTECTED]> wrote: Yes...here's how

Re: wildcards and spans

2006-08-02 Thread Paul Elschot
On Wednesday 02 August 2006 17:29, Erick Erickson wrote: > I'm back, with another flavor of wildcards. What direction would you point a > poor boy who's project lead wants wildcard queries and spans? Here's the > problem > > I cannot use any of the classes that throw a "TooManyClauses" excepti

Re: wildcards and spans

2006-08-02 Thread Erick Erickson
Hey! I'm actually looking all on my own. Anyway, 2 gives me TooManyClauses. It looks like what I want is to use IndexReader.termPositions to aggregate the offsets of all the wildcard terms on a per-document basis, then walk the lists for proximity. Something like... for each wildcard term wt fo

Re: wildcards and spans

2006-08-02 Thread Erick Erickson
Well, I can't do 2 TooManyClauses again. Should have realized that the terms are assembled independently Erick On 8/2/06, Erick Erickson <[EMAIL PROTECTED]> wrote: I'm back, with another flavor of wildcards. What direction would you point a poor boy who's project lead wants wildcard queri

wildcards and spans

2006-08-02 Thread Erick Erickson
I'm back, with another flavor of wildcards. What direction would you point a poor boy who's project lead wants wildcard queries and spans? Here's the problem I cannot use any of the classes that throw a "TooManyClauses" exception (e.g. SpanRegexQuery or SpanNearQuery with, say WildCardQuery).

RE: FileNotFoundException

2006-08-02 Thread Trieschnigg, R.B. \(Dolf\)
> Ok if I well understood I have to put the lock file at the > same place in my indexing process and searching process. > the code for indexing: > System.setProperty("org.apache.lucene.lockDir", System >.getProperty("user.dir")); Are you sure that both the search process

Re: Setting up slide in Eclipse

2006-08-02 Thread 李寻欢晕菜了
what's wrong with you? On 8/2/06, aslam bari <[EMAIL PROTECTED]> wrote: hello All, Does any body help me how to setup slide in Eclipse and start debug. Thanks... - Here's a new way to find what you're looking for - Yahoo! Answers -- ---

Setting up slide in Eclipse

2006-08-02 Thread aslam bari
hello All, Does any body help me how to setup slide in Eclipse and start debug. Thanks... - Here’s a new way to find what you're looking for - Yahoo! Answers

RE: Sorting

2006-08-02 Thread Rob Staveley (Tom)
> Scorers are by contract expected to score docs in docId order This was my missing link. Now it makes sense to me to use a buffered RandomAccessFile and not bother with the presort. Many thanks, Chris, that was very well explained. I'll have a crack at a lean-memory SortComparatorSource implem