On Tuesday 07 April 2009 05:04:44 Daniel Noll wrote:
> Hi all.
>
> This is something I have been wondering for a while but can't find a
> good answer by reading the code myself.
>
> If you have a query like this:
>
>( field:Value1 OR
> field:Value2 OR
> field:Value3 OR
> ...
Negative boosts are accepted, though rather "unusual". Also note that
Lucene by default filters out any hits with scores <= 0.0.
Normally you'd set boost to something > 0.0 (0.1 should work).
What unexpected effect are you seeing?
If you omit norms, then indeed your per-doc boost (and per-field
That was my problem... I was ommiting norms, so the boost I gave at the
document at index time was not taking effect.
Since I stop omitting them results have changed completely.
Thanks!
Michael McCandless-2 wrote:
>
> Negative boosts are accepted, though rather "unusual". Also note that
> Luce
Hi,
I have the following situation which needs to customize the final score
according to field value.
Suppose there are two docs in my query result, and they are ordered by
default score sort:
doc1(field1:bookA, field2:2000-01-01) -- score:0.80
doc2(field1:bookB, filed2:2009-01-01) -- score:0.70
Do you want the dates to *influence* or *determine* the order? I
don't have much help if what you're after is something like "docs
that are more recent tend to rank higher", although I vaguely
remember this question coming up on the user list, maybe a
search of the archive would turn something help
Hi All,
Sorry for the confused email.
Suppose I have a field text with content below
KeyWordAnalyzer is a class. this keyword is used in java.
Here the KeyWordAnalyzer into Key Word Analyzer and class should be a Key word.
So if some one search. Apart from this I want Key Word Analzer to tokeni
On Tue, Apr 7, 2009 at 3:08 AM, Jinming Zhang wrote:
> Hi,
>
> I have the following situation which needs to customize the final score
> according to field value.
>
> Suppose there are two docs in my query result, and they are ordered by
> default score sort:
>
> doc1(field1:bookA, field2:2000-01-
H. There's nothing in Lucene that I know of that will do what you
want, you'll have to do one of two things:
In general, you'll have to break up your token stream yourself, either
through pre-processing or building your own analyzers. There's
nothing already built that I know of that will brea
Karl,
Thankyou for your in-depth reply. This has given me good grounds to go on.
Regards
Glyn
2009/4/6 Karl Wettin :
> 6 apr 2009 kl. 14.59 skrev Glyn Darkin:
>
> Hi Glyn,
>
>> to be able to spell check phrases
>>
>> E.g
>>
>> "Harry Poter" is converted to "Harry Potter"
>>
>> We have a fixed
You might want to play with both boosting and multiple sorting.
You might want to look at something like Solr's boost queries or boost
functions
http://wiki.apache.org/solr/DisMaxRequestHandler#head-6862070cf279d9a09bdab971309135c7aea22fb3
Or if you want to go down the path of a custom score, most
Here is my code for indexing:
[code]
public static void main(String[] args) throws IOException {
if(args.length==2){
String docsDirectory =args[0];
String indexFilepath = args[1];
int numIndexed = 0;
IndexWriter writer;
ArrayL
Well, nothing jumps out at me, although I confess that I've not
used MultiFieldQueryParser. So here's what I'd do.
1> drop back to a simpler way of doing things. Forget about
MultiFieldQueryParser for instance. Get the really simple case
working then build back up. I'd also drop back to a very
bas
Jinming Zhang wrote:
Hi,
I have the following situation which needs to customize the final score
according to field value.
Suppose there are two docs in my query result, and they are ordered by
default score sort:
doc1(field1:bookA, field2:2000-01-01) -- score:0.80
doc2(field1:bookB, filed2:20
hi
--
DigitalGlue, India
Hi,
In a long running process Lucene get crashed in my application, Is there any
way to diagnose or how can I turn on debug logging / trace logging for
Lucene?
Thanks
Antony
--
DigitalGlue, India
-
To unsu
15 matches
Mail list logo