It will affect the phrase queries. That is why I am not using suggest
configuration.
On Thu, Jan 17, 2013 at 7:20 AM, Chris Hostetter
wrote:
>
> : Or there is some other way to do that?
>
> I'm late to this thread, but what was wrong with the simple suggestion of
> omitTermFreqAndPositions="true"
: Or there is some other way to do that?
I'm late to this thread, but what was wrong with the simple suggestion of
omitTermFreqAndPositions="true" ?
-Hoss
Please correct my understanding,
Use one of the factory as global similarity.
And extends org.apache.lucene.search.similarities.DefaultSimilarity to create
custom sim.
And add a similarity tag in field type definition for required fields.
Or there is some other way to do that?
Rgds
AJ
On 17-
To: solr-user@lucene.apache.org
> Subject: Re: Disable term frequency for some fields in solr
>
> There's gonna be two ways to do this - for yourself or for everyone.
>
> For yourself, you'll want to subclass
> org.apache.lucene.sear
There's gonna be two ways to do this - for yourself or for everyone.
For yourself, you'll want to subclass
org.apache.lucene.search.similarities.DefaultSimilarity and
org.apache.solr.search.similarities.DefaultSimilarityFactory.
Alternatively, patch those two files to allow setting the TF or the
Done same thing in solr3.6 and working but in sorl3.6 filed level of
similarity is not available. And Solr4 has Similarity Factories. So I was
not getting how do I do it on solr4. Which class do i need to extend and
move ahead.
On Wed, Jan 16, 2013 at 4:44 PM, Upayavira wrote:
> For someone ver
This involves taking a subclass of the DefaultSimilarity class, in Java,
and adding that to your Solr setup. For someone versed in Java, this is
relatively straight-forward. For others it is non-trivial.
Upayavira
On Wed, Jan 16, 2013, at 10:57 AM, Amit Jha wrote:
> Hi,
>
> How can I do this in
Hi,
How can I do this in solr4.
Amit
On Thu, Dec 6, 2012 at 1:40 PM, Markus Jelsma wrote:
> custom similarity for that field that returns 1 for
Hi,
You can either use omitTermFreqAndPositions on that field or set a custom
similarity for that field that returns 1 for tf > 0.
http://wiki.apache.org/solr/SchemaXml#Common_field_options
http://wiki.apache.org/solr/SchemaXml#Similarity
-Original message-
> From:Amit Jha
> Sent: T