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
: 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
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
: 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
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
: 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(
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
: 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
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.
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
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
: 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
---
: 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
: 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
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
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
--
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
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
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
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
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
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,
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
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
24 matches
Mail list logo