Re: Fetch related documents from Custom Function

2020-05-19 Thread mganeshs
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

Re: Fetch related documents from Custom Function

2020-05-18 Thread mganeshs
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

Re: Fetch related documents from Custom Function

2020-05-18 Thread Mikhail Khludnev
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

Fetch related documents from Custom Function

2020-05-18 Thread mganeshs
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

Parse multivalued field as list with custom function

2019-07-17 Thread Gregory.Guichard
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

Parse multivalued field as list with custom function

2019-07-16 Thread Gregory.Guichard
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

Re: Accessing multiValued field from within custom function

2019-02-07 Thread Dariusz Wojtas
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

Accessing multiValued field from within custom function

2019-01-03 Thread Dariusz Wojtas
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.

Re: Solr 5.5.2 - Custom Function Query update

2017-09-26 Thread Florian Le Vern
-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

Re: Solr 5.5.2 - Custom Function Query update

2017-09-26 Thread Emir Arnautović
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

Re: Solr 5.5.2 - Custom Function Query update

2017-09-25 Thread Susheel Kumar
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, >> >>

Re: Solr 5.5.2 - Custom Function Query update

2017-09-25 Thread Susheel Kumar
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

Solr 5.5.2 - Custom Function Query update

2017-09-25 Thread Florian Le Vern
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

Solr 5.5.2 - Custom Function Query update

2017-09-25 Thread Florian Le Vern
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

Custom Function-based Fields

2016-09-08 Thread Sandeep Khanzode
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

Re: sort by custom function of similarity score

2016-05-26 Thread Joel Bernstein
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

Re: sort by custom function of similarity score

2016-05-26 Thread aanilpala
/sort-by-custom-function-of-similarity-score-tp4279228p4279233.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: sort by custom function of similarity score

2016-05-26 Thread Joel Bernstein
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. >

Re: sort by custom function of similarity score

2016-05-26 Thread Ahmet Arslan
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

sort by custom function of similarity score

2016-05-26 Thread aanilpala
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.

Re: Need a group custom function(fieldcollapsing)

2016-03-15 Thread Binoy Dalal
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

Re: Need a group custom function(fieldcollapsing)

2016-03-15 Thread Abhishek Mishra
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 >

Need a group custom function(fieldcollapsing)

2016-03-14 Thread Abhishek Mishra
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

Problem with custom function on binary content

2015-10-15 Thread Robert Krüger
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

Re: custom function for multivalued fields

2015-07-29 Thread Gopal Jee
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

Re: custom function for multivalued fields

2015-07-29 Thread Chris Hostetter
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

custom function for multivalued fields

2015-07-29 Thread Gopal Jee
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

Re: Custom Function for date reformatting

2015-06-12 Thread Jack Krupansky
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

Custom Function for date reformatting

2015-06-12 Thread simon
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

Re: Example of sorting by custom function

2015-04-04 Thread Robert Krüger
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

Re: Example of sorting by custom function

2015-04-03 Thread david.w.smi...@gmail.com
: > 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"

Example of sorting by custom function

2015-04-03 Thread Robert Krüger
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

Re: Accessing document stored fields in a custom function

2014-09-24 Thread Mikhail Khludnev
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

Re: Accessing document stored fields in a custom function

2014-09-23 Thread Erick Erickson
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

Accessing document stored fields in a custom function

2014-09-23 Thread Scott Smith
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 "

Store Java object in field and retrieve it in custom function?

2014-06-19 Thread Costi Muraru
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'

Re: Performance/scaling with custom function queries

2014-06-12 Thread Robert Krüger
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

Re: How to retrieve entire field value (text_general) in custom function?

2014-06-11 Thread Shawn Heisey
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

How to retrieve entire field value (text_general) in custom function?

2014-06-11 Thread Costi Muraru
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

Re: Performance/scaling with custom function queries

2014-06-11 Thread Joel Bernstein
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

Re: Performance/scaling with custom function queries

2014-06-11 Thread david.w.smi...@gmail.com
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

Re: Performance/scaling with custom function queries

2014-06-11 Thread Robert Krüger
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

Re: Performance/scaling with custom function queries

2014-06-10 Thread Robert Krüger
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

Re: Extract values from custom function for ValueSource with multiple indexable fields

2014-06-08 Thread david.w.smi...@gmail.com
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

Re: Performance/scaling with custom function queries

2014-06-08 Thread Joel Bernstein
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

Extract values from custom function for ValueSource with multiple indexable fields

2014-06-08 Thread Costi Muraru
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,

Performance/scaling with custom function queries

2014-06-08 Thread Robert Krüger
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

Sorting by custom function query

2014-05-15 Thread Emanuele Filannino
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

Sorting by custom function query

2014-05-12 Thread Emanuele Filannino
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-

Re: Getting Solr Document Attributes from a Custom Function

2013-12-12 Thread Mukundaraman valakumaresan
;> 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

Re: Getting Solr Document Attributes from a Custom Function

2013-12-11 Thread Kydryavtsev Andrey
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 >>>

Re: Getting Solr Document Attributes from a Custom Function

2013-12-10 Thread Mukundaraman valakumaresan
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

Re: Getting Solr Document Attributes from a Custom Function

2013-12-09 Thread Kydryavtsev Andrey
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: > >>  

Re: Getting Solr Document Attributes from a Custom Function

2013-12-09 Thread Mukundaraman valakumaresan
) 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

Re: Getting Solr Document Attributes from a Custom Function

2013-12-09 Thread Chris Hostetter
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,

Getting Solr Document Attributes from a Custom Function

2013-12-09 Thread Mukundaraman valakumaresan
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

Re: Re-Ranking results based on DocValues with custom function.

2013-09-18 Thread Mathias Lux
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

Re: Re-Ranking results based on DocValues with custom function.

2013-09-17 Thread Chris Hostetter
: 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

Re: Re-Ranking results based on DocValues with custom function.

2013-09-17 Thread Mathias Lux
: 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

Re: Re-Ranking results based on DocValues with custom function.

2013-09-16 Thread Chris Hostetter
: 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

Re-Ranking results based on DocValues with custom function.

2013-09-16 Thread Mathias Lux
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

Re: Access Score in Custom Function Query

2011-11-05 Thread Erick Erickson
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

Re: Access Document Score in Custom Function Query (ValueSource)

2011-11-03 Thread sangrish
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

Access Score in Custom Function Query

2011-11-03 Thread sangrish
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

Re: Access Document Score in Custom Function Query (ValueSource)

2011-11-03 Thread Chris Hostetter
: 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.

Access Document Score in Custom Function Query (ValueSource)

2011-10-18 Thread sangrish
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

Re: how do I create custom function that uses multiple ValuesSources?

2010-09-01 Thread Gerald
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

how do I create custom function that uses multiple ValuesSources?

2010-09-01 Thread Gerald
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

Custom function...

2007-01-03 Thread escher2k
). 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.