Solr Experts, any easy way for reading other solr docs ( other docs ) from
solr custom function ?
--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Yes. But being inside solr ( I mean code getting executing via Custom
function ), do we have option to read the other solr documents in a easy
way.
--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Hello,
It sounds either like classic denormalization or (little bit slow and
cumbersome) result transformer [subquery].
On Mon, May 18, 2020 at 4:04 PM mganeshs wrote:
> Is there a easy possibility of reading the few field from related documents
> from Custom function ?
>
> For
Is there a easy possibility of reading the few field from related documents
from Custom function ?
For ex, Project document contains, project id, project name, Project manager
id ( which is nothing but employee id ). & Employee document contains field
( Employee id, Employee name ). Now w
Hello,
I'm trying to parse multivalued field (i.e : [8, 6, 9, 50]) as a List in a
custom function.
I looked all the existing parser here :
(https://github.com/apache/lucene-solr/tree/master/solr/core/src/java/org/apache/solr/search),
and I don't find any example of how to parse a m
Hello,
I'm trying to parse multivalued field (i.e : [8, 6, 9, 50]) as a List in a
custom function.
I looked all the existing parser here :
(https://github.com/apache/lucene-solr/tree/master/solr/core/src/java/org/apache/solr/search),
and I don't find any example of how to parse a m
Hi,
Any hints on this topic?
How to access String / Text values from a multiValued field inside custom
function?
Best regards,
Dariusz Wojtas
On Thu, Jan 3, 2019 at 6:18 PM Dariusz Wojtas wrote:
> Hi,
>
> I am using SOLR 7.5 in the cloud mode.
> I want to create a custom functio
Hi,
I am using SOLR 7.5 in the cloud mode.
I want to create a custom function similar to 'strdist' that works on
multivalued fields (multiValued=true) and finds the highest matching score.
Yes, I know the potential performance issues, but in my usecase this would
bring a huge benefit.
-mode.html
<https://lucene.apache.org/solr/guide/6_6/adding-custom-plugins-in-solrcloud-mode.html>
and let us know if this helps.
Thanks,
Emir
On 25 Sep 2017, at 15:44, Florian Le Vern wrote:
Hi,
I added a custom Function Query in a jar library that is loaded from the
`solr/data/lib` folde
Thanks,
Emir
> On 25 Sep 2017, at 15:44, Florian Le Vern wrote:
>
> Hi,
>
> I added a custom Function Query in a jar library that is loaded from the
> `solr/data/lib` folder (same level as the cores) with the solrconfig line:
> class="blah.blah.solr.search.function.M
ignore solr version...
On Mon, Sep 25, 2017 at 11:21 AM, Susheel Kumar
wrote:
> Check if your jar is present at solr-6.0.0/server/solr//lib/ or do
> a find under solr directory...
>
> On Mon, Sep 25, 2017 at 9:59 AM, Florian Le Vern > wrote:
>
>> Hi,
>>
>>
Check if your jar is present at solr-6.0.0/server/solr//lib/ or do a
find under solr directory...
On Mon, Sep 25, 2017 at 9:59 AM, Florian Le Vern
wrote:
> Hi,
>
> I added a custom Function Query in a jar library that is loaded from the
> `solr/data/lib` folder (same level as the
Hi,
I added a custom Function Query in a jar library that is loaded from the
`solr/data/lib` folder (same level as the cores) with the solrconfig line:
class="blah.blah.solr.search.function.MyFuncValueParser" />
I just updated this lib but after restarting Solr, it seems that i
Hi,
I added a custom Function Query in a jar library that is loaded from the
`solr/data/lib` folder (same level as the cores) with the solrconfig line:
I just updated this lib but after restarting Solr, it seems that it
still uses the previous version.
I also tried to delete the lib from the
Hi,
Can someone please direct me to some documentation that shows how to do this
... ?
I need to write a non-trivial function that will return a new custom (not in
schema) field but which is more complicated than a simple sum/avg/etc.
I want to create a function that looks at a few dateranges in
y the raranker if I am using a plugin that reranks the
> results? I guess the answer depends on which of fq or rq is applied first.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/sort-by-custom-function-of-similarity-score-tp4279228p4279233.html
/sort-by-custom-function-of-similarity-score-tp4279228p4279233.html
Sent from the Solr - User mailing list archive at Nabble.com.
seems that it won't work. is there an alternative way to achieve this?
>
> using solr6
>
> thanks in advance.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/sort-by-custom-function-of-similarity-score-tp4279228.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
t function (sortspec) that is using similarity
score. for example something like in the following:
sort=product(2,score) desc
seems that it won't work. is there an alternative way to achieve this?
using solr6
thanks in advance.
--
View this message in context:
http://lucene.472066.n3.nabble.com
ntext:
http://lucene.472066.n3.nabble.com/sort-by-custom-function-of-similarity-score-tp4279228.html
Sent from the Solr - User mailing list archive at Nabble.com.
gt; > Hi all
> > We are running on solr5.2.1 . Now the requirement come that we need the
> > data on basis on some algo. The algorithm part we need to put on result
> > obtained from query. So best we can do is using
> > group.field,group.main,group.func. In group.func we
do is using
> group.field,group.main,group.func. In group.func we need to use custom
> function which will run the algorithm part. My doubts are where we need to
> put custom function in which file??. I found some articles related to this
> https://dzone.com/articles/how-write-custom-solr
>
Hi all
We are running on solr5.2.1 . Now the requirement come that we need the
data on basis on some algo. The algorithm part we need to put on result
obtained from query. So best we can do is using
group.field,group.main,group.func. In group.func we need to use custom
function which will run the
Hi,
I am trying to implement a custom function that evaluates fields stored as
type "binary" (BinaryField).
I have my ValueSourceParser set up and I can retrieve the arguments of my
function correctly and have a reference to the SchemaField. Now I am a bit
stuck, how I can retrieve
obably going
> to want to look at is SortedSetSelector: you're going to want a similar
> "SortedDocValues proxy" class on top of SortedSetDocValues -- but instead
> of picking a single value, you want to pick your new synthetic value based
> on your custom function logic.
&g
a similar
"SortedDocValues proxy" class on top of SortedSetDocValues -- but instead
of picking a single value, you want to pick your new synthetic value based
on your custom function logic.
https://issues.apache.org/jira/browse/SOLR-2522
: I have a requirement where i want to maintain a multiv
I have a requirement where i want to maintain a multivalued field. However,
at query time, i want to query on only one value we store in multivalued
field. That one value should be output of a custom function which should
execute on all values of multivalued field at query time.
Can we write such
rate pseudo-fields in search results ?
>
> I am converting existing appplications that have baked-in assumptions that
> dates are in the format -mm-dd to use Solr, and tracking down every
> place where a date format conversion is needed is proving painful indeed
> ;=(
>
> M
every
place where a date format conversion is needed is proving painful indeed ;=(
My thought is to write a custom function of the form
datereformatter(, ) but I thought I'd
check if it's already been done or if someone can suggest a better approach.
regards
-Simon
gt; Freelance Apache Lucene/Solr Search Consultant/Developer
> http://www.linkedin.com/in/davidwsmiley
>
> On Fri, Apr 3, 2015 at 9:44 AM, Robert Krüger wrote:
>
> > Hi,
> >
> > I have been looking around on the web for information on sorting by a
> > custom functio
:
> Hi,
>
> I have been looking around on the web for information on sorting by a
> custom function but the results are inconclusive to me and some of it seems
> so old that I suspect it's outdated. What I want to do is the following:
>
> I have a field "fingerprint"
Hi,
I have been looking around on the web for information on sorting by a
custom function but the results are inconclusive to me and some of it seems
so old that I suspect it's outdated. What I want to do is the following:
I have a field "fingerprint" in my schema that contain
between segment-local docnums, and global ones, which
are used by Solr sometimes.
On Wed, Sep 24, 2014 at 3:08 AM, Scott Smith
wrote:
> I'm creating a custom function (extends ValueSource). I'm generating a
> value that will both be returned as a value in the hit for each doc an
ss it 1M times (subject to
block sizes and all that stuff, but you get the idea).
Best,
Erick
On Tue, Sep 23, 2014 at 4:08 PM, Scott Smith
wrote:
> I'm creating a custom function (extends ValueSource). I'm generating a
> value that will both be returned as a value in the hit fo
I'm creating a custom function (extends ValueSource). I'm generating a value
that will both be returned as a value in the hit for each doc and also be used
to sort. As I read the documentation, this is not difficult.
To determine the value for a document, I need to access the "
Hi,
I'm trying to save a Java object in a binary field and afterwards use this
value in a custom solr function.
I'm able to put and retrieve the Java object in Base64 via the UI, but I
can't seem to be able to retrieve the value in the custom function.
In the function I'
Thanks for the info. I will look at that.
On Wed, Jun 11, 2014 at 3:47 PM, Joel Bernstein wrote:
> In Solr 4.9 there is a feature called RankQueries, that allows you to
> plugin your own ranking collector. So, if you wanted to write a
> ranking/sorting collector that used a thread per segment, yo
On 6/11/2014 9:30 AM, Costi Muraru wrote:
> I have a text_general field and want to use its value in a custom function.
> I'm unable to do so. It seems that the tokenizer messes this up and only a
> fraction of the entire value is being retrieved. See below for more details.
Lo
I have a text_general field and want to use its value in a custom function.
I'm unable to do so. It seems that the tokenizer messes this up and only a
fraction of the entire value is being retrieved. See below for more details.
1 term1 term2 term3 <
long name="_version_">14
In Solr 4.9 there is a feature called RankQueries, that allows you to
plugin your own ranking collector. So, if you wanted to write a
ranking/sorting collector that used a thread per segment, you could cleanly
plug it in.
Joel Bernstein
Search Engineer at Heliosearch
On Wed, Jun 11, 2014 at 9:39
On Wed, Jun 11, 2014 at 7:46 AM, Robert Krüger wrote:
> Or will I have to set up distributed search to achieve that?
Yes — you have to shard it to achieve that. The shards could be on the
same node.
There were some discussions this year in JIRA about being able to do
thread-per-segment but it
nd of digital fingerprint-like thing.
>>>
>>> Let's say I want to perform queries on that field to achieve sorting
>>> or filtering based on a kind of custom distance function
>>> "customDistance", i.e. I input a reference "fingerprint" and
e function
>> "customDistance", i.e. I input a reference "fingerprint" and Solr
>> returns either all documents sorted by
>> customDistance(,) or use
>> that in an frange expression for filtering.
>>
>> I have read http://wiki.apache.org/solr/Sol
AM, Costi Muraru wrote:
> Hi guys,
>
> I have a custom FieldType that adds several IndexableFields for each
> document.
> I also have a custom function, in which I want to retrieve these indexable
> fields. I can't seem to be able to do so. I have added some code snippets
have read http://wiki.apache.org/solr/SolrPerformanceFactors and I
> do understand that using function queries with a custom function is
> definitely an expensive thing as it will result in what is called a
> "full table scan" in the sql world, i.e. data from all documents needs
> to
Hi guys,
I have a custom FieldType that adds several IndexableFields for each
document.
I also have a custom function, in which I want to retrieve these indexable
fields. I can't seem to be able to do so. I have added some code snippets
below.
Any help is gladly appreciated.
Thanks,
ctors and I
do understand that using function queries with a custom function is
definitely an expensive thing as it will result in what is called a
"full table scan" in the sql world, i.e. data from all documents needs
to be touched to select the correct documents or sort by a function's
Hi there,
I'm running into some issues developing a custom function query using Solr
3.6.2.
My goal is to be able to implement a custom sorting technique.
I have a field called daily_prices_str, it is a single value str.
Example:
2014-05-01:130 2014-05-02:130 2014-05-03:130 2014-05-0
Hi there,
I'm running into some issues developing a custom function query using Solr
3.6.2.
My goal is to be able to implement a custom sorting technique.
I have a field called daily_prices_str, it is a single value str.
Example:
2014-05-01:130 2014-05-02:130 2014-05-03:130 2014-
;> where maxprice, maxprice and total cities will be available at run
> time.
> >>>
> >>> So for the following record, it has to execute as (1 -
> >>> *5000*)/(1-2000)
> >>> + *2*/5 (where 5000 and 2, which are in bold are from the d
s will be available at run time.
>>>
>>> So for the following record, it has to execute as (1 -
>>> *5000*)/(1-2000)
>>> + *2*/5 (where 5000 and 2, which are in bold are from the document)
>>>
>>>
>>> apartment_1
>>>
0
> >
> >
> > Thanks & Regards
> > Mukund
> >
> > On Tue, Dec 10, 2013 at 12:22 AM, Chris Hostetter
> > wrote:
> >
> >> Smells like an XY problem ...
> >>
> >> Can you please describe what your end goal is in writin
000)
> + *2*/5 (where 5000 and 2, which are in bold are from the document)
>
>
> apartment_1
> Casa Grande
> chennai
> bangalore
> 5000
>
>
> Thanks & Regards
> Mukund
>
> On Tue, Dec 10, 2013 at 12:22 AM, Chris Hostetter
> wrote:
>
>>
)
apartment_1
Casa Grande
chennai
bangalore
5000
Thanks & Regards
Mukund
On Tue, Dec 10, 2013 at 12:22 AM, Chris Hostetter
wrote:
>
> Smells like an XY problem ...
>
> Can you please describe what your end goal is in writing a custom
> function, and what you would do with things li
Smells like an XY problem ...
Can you please describe what your end goal is in writing a custom
function, and what you would do with things like the "name" field inside
your funciton?
In general, accessing stored field values for indexed documents ca be
prohibitively expensive,
Hi All,
I have a written a custom solr function and I would like to read a property
of the document inside my custom function. Is it possible to get that using
Solr?
For eg. inside the floatVal method, I would like to get the value of the
attribute "name"
public class CustomValueSour
Got it! Just for you to share ... and maybe for inclusion in the Java
API docs of ValueSource :)
For sorting one needs to implement the method
public double doubleVal(int) of the class ValueSource
then it works like a charm.
cheers,
Mathias
On Tue, Sep 17, 2013 at 6:28 PM, Chris Hostetter
w
: It basically allows for searching for text (which is associated to an
: image) in an index and then getting the distance to a sample image
: (base64 encoded byte[] array) based on one of five different low level
: content based features stored as DocValues.
very cool.
: So there one little tin
: text search and then (optionally) re-rank using some custom function
> : like
> :
> : http://localhost:8983/solr/select?q=*:*&sort=myCustomFunction(var1) asc
>
> can you describe what you want your custom function to look like? it may
> already be possible using the exist
: dissimilarity functions). What I want to do is to search using common
: text search and then (optionally) re-rank using some custom function
: like
:
: http://localhost:8983/solr/select?q=*:*&sort=myCustomFunction(var1) asc
can you describe what you want your custom function to look like
Hi!
I'm having quite an index with a lot of text and some binary data in
the documents (numeric vectors of arbitrary size with associated
dissimilarity functions). What I want to do is to search using common
text search and then (optionally) re-rank using some custom function
like
ou're sorting by score.
And you can always get score back as a field in the docs
Best
Erick
On Thu, Nov 3, 2011 at 6:10 PM, sangrish wrote:
>
>
> Hi,
>
>
> I have a custom function query (value source) where I want to use the
> score for some computation. For exampl
I understand that. Thanks.
I just posted a related question , titled : "Access Score in Custom Function
Query "
where (among other things) I am asking about the performance aspects of this
method. As you said, I need to execute "some" query first to create a
constrain
Hi,
I have a custom function query (value source) where I want to use the
score for some computation. For example, for every document I want to add
some number (obtained from an external file) to its score. I am achieving
this like the following:
http://localhost:PORT/myCore/select?q
: In this value source I compute another score for every document
: using some features. I want to access the score of the query myField^2
: (for a given document) in this same value source.
:
: Ideas?
your ValueSource can wrap the score from the other query using a
QueryValueSource.
Hi,
I use the following 2 components in ranking documents:
"Normal Query" : myField^2
Custom Function Query(ValueSource): myFunc()
In this value source I compute another score for every document
using some features. I want to access the score of the query
the length of the specified fields after
concatenation
very nice being able to create custom functions.
now on to creating custom functions that handle multiValued data types
--
View this message in context:
http://lucene.472066.n3.nabble.com/how-do-I-create-custom-function-that-uses-multiple
using the NvlValueSourceParser example, I was able to create a custom
function that has two parameters; a valuesource (a solr field) and a string
literal. i.e.: myfunc(mysolrfield, "test")
it works well but is a pretty simple function.
what is the the best way to implement a (mo
).
However, we don't have access to the field name in the function public float
tf(float freq).
Is there any way out ?
Thanks.
--
View this message in context:
http://www.nabble.com/Custom-function...-tf2917408.html#a8153140
Sent from the Solr - User mailing list archive at Nabble.com.
69 matches
Mail list logo