Re: Search on many indexes at once

2006-03-03 Thread Raul Raja Martinez
Thanks Chris I'll provably try passing the MultiSearcher instance as a parameter so that I can use subDoc and so. It makes sense though to have a getIndex() method inside hit or document that returns some information about where that hit or document belongs to. Do you think that is reasonable to

Re: Search on many indexes at once

2006-03-03 Thread Chris Hostetter
: It looks like I don't have access to the searcher.subSearcher or subDoc, : since I get just a Hits object. Is it possible to know the Index folder : based on a hit? As i understand it (like i said: i've never used these methods) the doc id returned by Hits.id() is what you pass to subSearcher t

Re: Search on many indexes at once

2006-03-03 Thread Raul Raja Martinez
Hi Chris, thanks for the quick response, It looks like I don't have access to the searcher.subSearcher or subDoc, since I get just a Hits object. Is it possible to know the Index folder based on a hit? I'm on a SearchResults component that takes a Hits object as parameter and the search is a

Re: Search on many indexes at once

2006-03-03 Thread Chris Hostetter
: got this working, I just need to know how to get from a resulting hit : which index the hit belongs to. I have News, Channels, Categories and : Images as different Indexes and I need to link to one page or another : based on whether a hit belong to an index or not. take a look at subSearcher an

Re: Search on many indexes at once

2006-03-03 Thread Raul Raja Martinez
Thanks I found some info in Lucene in action about Multisearcher and I got this working, I just need to know how to get from a resulting hit which index the hit belongs to. I have News, Channels, Categories and Images as different Indexes and I need to link to one page or another based on wheth

Re: Help interpreting explanation

2006-03-03 Thread Chris Hostetter
: I was looking at the new 1.9 api and can't seem to find this expert mode : of searching. yonik's refering to all of the methods in the Searcher class that have "Expert" in their (javadoc) description. : http://lucene.apache.org/java/docs/api/org/apache/lucene/search/IndexSearcher.html#search(

Re: Help interpreting explanation

2006-03-03 Thread Eugene
I was looking at the new 1.9 api and can't seem to find this expert mode of searching. http://lucene.apache.org/java/docs/api/org/apache/lucene/search/IndexSearcher.html#search(org.apache.lucene.search.Weight,%20org.apache.lucene.search.Filter,%20org.apache.lucene.search.HitCollector) Can you te

Re: "filtering" using RangeFilter class

2006-03-03 Thread Chris Hostetter
: I am trying to filter my search using RangeFilter class but i get : BooleanQuery TooManyClauses exception. You aren't useing a RangeFilter, you are using a RangeQuery ... they are very different beasts. RangeQuery works fine for small ranges, or when you want the term frequencies of the terms

Lucene 1.9.1 release available

2006-03-03 Thread Doug Cutting
Release 1.9.1 of Lucene is now available from: http://www.apache.org/dyn/closer.cgi/lucene/java/ This fixes a serious bug in 1.9-final. It is strongly recommended that all 1.9-final users upgrade to 1.9.1. For details see: http://svn.apache.org/repos/asf/lucene/java/tags/lucene_1_9_1/CHANGES.

RE: "filtering" using RangeFilter class

2006-03-03 Thread Seeta Somagani
That would most likely be the result of your range query expanding to more than BooleanQuery.getMaxClauseCount(); Use BooleanQuery.setMaxClauseCount(int) to set it to a higher range -Original Message- From: Urvashi Gadi [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 3:37 PM To: ja

"filtering" using RangeFilter class

2006-03-03 Thread Urvashi Gadi
Hi All, I am trying to filter my search using RangeFilter class but i get BooleanQuery TooManyClauses exception. Exception in thread "main" org.apache.lucene.search.BooleanQuery$TooManyClauses at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:109) at org.apache.lucene.search.Bo

Re: Search on many indexes at once

2006-03-03 Thread Chris Hostetter
: Is it possible to search many indexes in one query and get back the Hits : ordered by relevance? : : Can someone point me out to some document or place that explains this? I've never used it, but the javadocs for MultiSearcher seem pretty straight forward. -Hoss ---

RE: search problem

2006-03-03 Thread Chris Hostetter
: Where can I see the example using HitCollector ? if you mean examples of writing a HitCollector, then the javadocs for the HitCollector class are a good place to start. As is the source code for TopDocCollector and and TopFieldDocCollector. If you mean an example of using a HitCollector when

Re: :using different analyzers for indexing and searching:

2006-03-03 Thread Chris Hostetter
: I am using Standard Analyzer with stop words when I am trying to index my : documents.. but when I want to support wildcard functionality it is not : working with Standard Analyzer since it ignores the Punctuation character : where * and ? are also part of Punctuations . So I want to use another

Re: Search on many indexes at once

2006-03-03 Thread Jeff Rodenburg
Raul - You'll want to look at the MultiSearcher and ParallelMultiSearcher classes for this. On 3/3/06, Raul Raja Martinez <[EMAIL PROTECTED]> wrote: > > Is it possible to search many indexes in one query and get back the Hits > ordered by relevance? > > Can someone point me out to some document o

Re: Help interpreting explanation

2006-03-03 Thread Yonik Seeley
On 3/3/06, Eugene <[EMAIL PROTECTED]> wrote: > Just one more question: Any way in which i can disable this normalization? We disabled this normalization for in Lucene 1.9 for the "expert" level search methods on IndexSearcher. Use the search methods that don't return Hits. -Yonik --

Re: Help interpreting explanation

2006-03-03 Thread Eugene
Ok, i figured out the normalization it was actually on an earlier post here: http://mail-archives.apache.org/mod_mbox/lucene-java-user/200601.mbox/[EMAIL PROTECTED] Just one more question: Any way in which i can disable this normalization? Thanks for all the help so far. -- Eugene Eugene wro

Re: Help interpreting explanation

2006-03-03 Thread Eugene
Hi, You mentioned: "The Hits class normalizes scores by dividing all scores by the highest score, if that highest score is above 1.0." Can you explain what highest score are we talking about? I think there's only one score for a query and doc right? Thanks Yonik Seeley wrote: On 3/3/06, Euge

Re: Help interpreting explanation

2006-03-03 Thread Yonik Seeley
On 3/3/06, Eugene <[EMAIL PROTECTED]> wrote: > Hi Yonik, > > Thanks a lot, I think i understand how explanation works better now. > > But, there's something weird I noticed. I've a query like: > "problem formulation each possible x probability p x y find x p x y > maximized how compute p x y" > > T

Re: Help interpreting explanation

2006-03-03 Thread Eugene
Hi Yonik, Thanks a lot, I think i understand how explanation works better now. But, there's something weird I noticed. I've a query like: "problem formulation each possible x probability p x y find x p x y maximized how compute p x y" The weird thing is that literals like "problem", "formulat

Query filter and span query

2006-03-03 Thread Rajesh Munavalli
I am not sure if a Query Filter would reduce the retrieval time in the following scenario. The idea is to retrieve top N documents where the query terms appear near one another within a document. Let A = Total number of query terms B = Subset of A where Number of Query terms(B) << Number of Que

Search on many indexes at once

2006-03-03 Thread Raul Raja Martinez
Is it possible to search many indexes in one query and get back the Hits ordered by relevance? Can someone point me out to some document or place that explains this? any help is appreciated. Thanks. Raul. - To unsubscribe,

RE: search problem

2006-03-03 Thread anton
2) assuming what you want is not all brands and all prices, but just the prices and brands of the documents in you results, then i would strongly recommend doing your search twice -- once do get the Hits object you need and once using a HitCollector. Within the HitCollector, use FieldCaches to lo

:using different analyzers for indexing and searching:

2006-03-03 Thread Ravi
Hi , I am using Standard Analyzer with stop words when I am trying to index my documents.. but when I want to support wildcard functionality it is not working with Standard Analyzer since it ignores the Punctuation character where * and ? are also part of Punctuations . So I want to use another