hello,
I have the following question:
is it possible to combine the result of a custom score, with the normal
relevance ranking score ?
We'd like to have a scoring where documents that have a title field that's
the same as the title of many other documents, are ranked lower. But
without losing
The score from the main query is passed to the customScore() methods
of CustomScoreProvider so you can tweak that as you will. Or, easier,
use document boosting to set a low boost for common titles. How are
you going to determine if a title is common or not?
Lucene by default will tend to
That description is too vague. Could you provide a couple of examples of
index text and queries and what you expect those queries to match.
If you simply want to query for * and ? in string fields, escape them
with a backslash. But if you want to escape them in text fields, be sure
to use an
For instance, I have a list of tags related to a text. Each text with
its list of tags are put in a document and indexed by Lucene. If we
consider that a tag is buddh* and I would like to make a query (e.g.
buddha or buddhism or buddhist) and find the document that contain
buddh*.
Thanks,
Ah, okay... some people call that prospective search. In any case, there
is no direct Lucene support that I know of.
There are some references here:
http://lucene.apache.org/core/4_0_0/memory/org/apache/lucene/index/memory/MemoryIndex.html
-- Jack Krupansky
-Original Message-
From:
Hi Nicolas,
For trailing '*' only: On the query side, you can use a front-side
EdgeNGramTokenFilter with a large max gram size, followed by a
PatternReplaceFilter with pattern (.*) and replacement $1*.
Steve
On Feb 8, 2013, at 10:14 AM, Nicolas Roduit nicolas.rod...@jmicrovision.com
wrote:
Hi,
In our application we need to call method
setAutoGeneratePhraseQueries(true)
on lucene QueryParser, this is the way used to work in earlier versions
and it seems to me that is the much natural way?
But in current solr 3.6.1, the only way to do so is to set
I am very sorry, I should have sent to solr user group, not lucene!!
Best regards, Lisheng
-Original Message-
From: Zhang, Lisheng
Sent: Friday, February 08, 2013 12:17 PM
To: 'java-user@lucene.apache.org'
Subject: Solr query parser, needs to call
setAutoGeneratePhraseQueries(true)