Solr Custom Similarity - Using a field from the indexed document

2018-08-22 Thread jagadeeshm
Can someone please look into the following - https://stackoverflow.com/questions/51978351/solr-custom-similarity-using-a-field-from-the-indexed-document Thanks! -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Problem loading custom similarity class via blob API

2017-08-10 Thread Webster Homer
The blob store api is indeed severely limited (near useless) by this: https://issues.apache.org/jira/browse/SOLR-9175 On Thu, Aug 10, 2017 at 4:08 PM, Webster Homer wrote: > I have a need to override the default behavior of the BM25Similarty class. > It was trivial to create the class. My proble

Problem loading custom similarity class via blob API

2017-08-10 Thread Webster Homer
I have a need to override the default behavior of the BM25Similarty class. It was trivial to create the class. My problem is that I cannot load it, at least via the blob api as described here: https://cwiki.apache.org/confluence/display/solr/Adding+Custom+Plugins+in+SolrCloud+Mode I set enable.run

Re: Multiple custom Similarity implementations

2016-03-10 Thread Parvesh Garg
t; Markus > > > > -Original message- > > > From:Parvesh Garg > > > Sent: Tuesday 8th March 2016 5:36 > > > To: solr-user@lucene.apache.org > > > Subject: Multiple custom Similarity implementations > > > > > > Hi, > >

Re: Multiple custom Similarity implementations

2016-03-10 Thread Ahmet Arslan
> Markus > > -Original message- > > From:Parvesh Garg > > Sent: Tuesday 8th March 2016 5:36 > > To: solr-user@lucene.apache.org > > Subject: Multiple custom Similarity implementations > > > > Hi, > > > > We have a require

Re: Multiple custom Similarity implementations

2016-03-09 Thread Parvesh Garg
to be supported for good reasons. You need multiple cores, or > multiple fields with different similarity defined in the same core. > Markus > > -Original message- > > From:Parvesh Garg > > Sent: Tuesday 8th March 2016 5:36 > > To: solr-user@lucene.apa

RE: Multiple custom Similarity implementations

2016-03-08 Thread Markus Jelsma
March 2016 5:36 > To: solr-user@lucene.apache.org > Subject: Multiple custom Similarity implementations > > Hi, > > We have a requirement where we want to run an A/B test over multiple > Similarity implementations. Is it possible to define multiple similarity > tags in

Multiple custom Similarity implementations

2016-03-07 Thread Parvesh Garg
Hi, We have a requirement where we want to run an A/B test over multiple Similarity implementations. Is it possible to define multiple similarity tags in schema.xml file and chose one using the URL parameter? We are using solr 4.7 Currently, we are planning to have different cores with different

Re: Why QueryWeight with Custom Similarity

2016-02-25 Thread Markus, Sascha
12 PM, Markus, Sascha wrote: > Hi, > I finally found the source of the problem I'm having with the custom > similarity. > > The setting: > - Solr 5.4.1 > - the SpecialSimilarity extends ClassicSimilarity > - for one field this similarity is configured. Everything els

Re: Why QueryWeight with Custom Similarity

2016-02-25 Thread Markus, Sascha
Hi, I finally found the source of the problem I'm having with the custom similarity. The setting: - Solr 5.4.1 - the SpecialSimilarity extends ClassicSimilarity - for one field this similarity is configured. Everything else uses ClassicSimilarity because of Result: - most calculation is do

Why QueryWeight with Custom Similarity

2016-02-15 Thread Markus, Sascha
Hi, I created a custom similarity and factory which extends DefaultSimilarity/-Factory to have to achive this I my similarity overwrites idfExplain like this and also the method for an array of terms. public Explanation idfExplain(CollectionStatistics collectionStats, TermStatistics termStats

How can I access parameters/settings from schema.xml from my custom similarity implementation

2013-07-03 Thread Gyozo Kudor
Hello I made a very simple custom similarity, mainly for testing and learning: public class StaticNormSimilarity extends DefaultSimilarity { private static final Logger LOG = LoggerFactory.getLogger(StaticNormSimilarity.class); private float norm = 0.1f; public void setNorm(float norm

Re: Problem with custom Similarity class

2011-05-16 Thread Chris Hostetter
: The code is here: http://pastebin.com/50ugqRfA : : and my schema.xml configuration entry for : similarity is: : exactly what version of Solr are you using? what does the full field/fieldType declaration look like in your schema.xml for the filed you are testing

Re: Problem with custom Similarity class

2011-05-16 Thread Alex Grilo
#x27;m new to Solr and I'm trying to use my custom Similarity class but I've > > not succeeded on that. > > > > I added some debug information and my class is loaded, but it is not used > > when queries are made. > > > > Does someone could help me? If any

Re: Problem with custom Similarity class

2011-05-16 Thread Gora Mohanty
On Mon, May 16, 2011 at 10:04 PM, Alex Grilo wrote: > Hi, > I'm new to Solr and I'm trying to use my custom Similarity class but I've > not succeeded on that. > > I added some debug information and my class is loaded, but it is not used > when queries are made. &

Problem with custom Similarity class

2011-05-16 Thread Alex Grilo
Hi, I'm new to Solr and I'm trying to use my custom Similarity class but I've not succeeded on that. I added some debug information and my class is loaded, but it is not used when queries are made. Does someone could help me? If any further information is relevant, I can provide

Re: Using custom Similarity class

2008-07-17 Thread Chris Hostetter
: Thanks for the tip but I solved it but using the old way of loading custom : libs into solr: unpack the war file, add the custom library to WEB-INF/lib : and repack it. It definetly is a class loader problem, as the wiki specifies : that the new way of loading custom jars is using a custom class

Re: Using custom Similarity class

2008-07-17 Thread Sébastien Rainville
Thanks for the tip but I solved it but using the old way of loading custom libs into solr: unpack the war file, add the custom library to WEB-INF/lib and repack it. It definetly is a class loader problem, as the wiki specifies that the new way of loading custom jars is using a custom class loader t

Re: Using custom Similarity class

2008-07-17 Thread Koji Sekiguchi
> com.example.CustomSimilarity cannot be cast to > org.apache.lucene.search.Similarity > at org.apache.solr.schema.IndexSchema.readConfig(IndexSchema.java:449) > ... 28 more I think you've got a class loader problem. If you have solr-1.2.0 source code, see the line 499 of IndexSchema.java:

Re: Using custom Similarity class

2008-07-17 Thread Sébastien Rainville
to be not quite trunk at least, > as IndexSchema.java:449 isn't the the similarity stuff currently). > > Does your CustomSimilarity have a no-arg constructor? > >Erik > > > > > On Jul 16, 2008, at 9:19 PM, Sébastien Rainville wrote: > > Hi, >>

Re: Using custom Similarity class

2008-07-16 Thread Erik Hatcher
trying to make solr use my custom similarity class: import org.apache.lucene.search.DefaultSimilarity; public class CustomSimilarity extends DefaultSimilarity { } but I keep getting this error: com.example.CustomSimilarity cannot be cast to org.apache.lucene.search.Simila

Using custom Similarity class

2008-07-16 Thread Sébastien Rainville
Hi, I'm trying to make solr use my custom similarity class: import org.apache.lucene.search.DefaultSimilarity; public class CustomSimilarity extends DefaultSimilarity { } but I keep getting this error: com.example.CustomSimilarity cannot be cast to org.apache.lucene.search.Similarity

Re: Custom Similarity

2007-12-28 Thread Grant Ingersoll
On Dec 28, 2007, at 4:17 PM, Yonik Seeley wrote: On Dec 28, 2007 4:05 PM, Grant Ingersoll <[EMAIL PROTECTED]> wrote: I have a custom Similarity class that I would like to load. It has a no-arg constructor, so it should work fine within Solr's context. However, it has the optio

Re: Custom Similarity

2007-12-28 Thread Yonik Seeley
On Dec 28, 2007 4:05 PM, Grant Ingersoll <[EMAIL PROTECTED]> wrote: > I have a custom Similarity class that I would like to load. It has a > no-arg constructor, so it should work fine within Solr's context. > However, it has the option for other constructor input values as

Custom Similarity

2007-12-28 Thread Grant Ingersoll
I have a custom Similarity class that I would like to load. It has a no-arg constructor, so it should work fine within Solr's context. However, it has the option for other constructor input values as well that I would like to be able to set. Is there a way to set these values in

Re: Error loading custom similarity class

2007-04-09 Thread mark angelillo
Thanks, Yonik. I was definitely missing that. On Apr 9, 2007, at 2:08 PM, Yonik Seeley wrote: On 4/9/07, mark angelillo <[EMAIL PROTECTED]> wrote: package org.apache.lucene.misc; [...] 2) Create the .jar file. (Maybe I'm doing this wrong?) > javac classpath lucene-core-nightly.jar CustomS

Re: Error loading custom similarity class

2007-04-09 Thread Yonik Seeley
On 4/9/07, mark angelillo <[EMAIL PROTECTED]> wrote: package org.apache.lucene.misc; [...] 2) Create the .jar file. (Maybe I'm doing this wrong?) > javac classpath lucene-core-nightly.jar CustomSimilarity.java > jar -cvf CustomSimilarity.jar CustomSimilarity.class This may be the problem.

Error loading custom similarity class

2007-04-09 Thread mark angelillo
Hiya, I'm currently trying to compile and load my own similarity class in Solr, and I'm having a bit of a problem. Here's what I've done so far: 1) Create the .java for the class using SweetSpotSimilarity as a model. I'm using the code below to make sure I can get this working -- my real