SOLR and string comparison functions

2017-09-18 Thread Dariusz Wojtas
for comparison working on the fullName field the same way as: "John Adreew Jr. Doe and Partners"~10^0.3 ? What are the functions that compare strings, other than strdist? How do I create function similar to the "John Andrew ..." example above? Best regards, Dariusz Wojtas

Re: SOLR and string comparison functions

2017-09-18 Thread Dariusz Wojtas
alysis > and edismax query parser. > Otherwise good luck if you have a large index. > > Regards, > Emir > > > On 19 Sep 2017, at 00:01, Dariusz Wojtas wrote: > > > > Hi, > > I am working on an application that searches for entries that may be > > queried by

Rescoring from 0 - full

2017-09-20 Thread Dariusz Wojtas
it is still about changing the original score, not full calculation. How can take full control on score in rerank? Is it possible? Best regards, Dariusz Wojtas

Re: Rescoring from 0 - full

2017-10-05 Thread Dariusz Wojtas
el", "class" : "org.apache.solr.ltr.model.LinearModel", "features" : [ { "name" : "scorePersonalId" }, { "name" : "originalScore" } ], "params" : { "weights" : { "scorePersonalId" :

LTR 'feature' and passing date parameters

2017-10-18 Thread Dariusz Wojtas
ature: Invalid Date String:'1998-11-23' Any idea how to solve such problem? Best regards, Dariusz Wojtas

Re: LTR 'feature' and passing date parameters

2017-10-18 Thread Dariusz Wojtas
Thank you very much Binoy. This worked perfectly. Best regards, Dariusz Wojtas On Wed, Oct 18, 2017 at 5:06 PM, Binoy Dalal wrote: > Dariusz, > This problem is most probably occurring because solr does not store dates > in the format you've specified. It's something like: 2

LTR feature and proximity search with Block Join Parent query Parser

2017-10-19 Thread Dariusz Wojtas
ple searches where I search for city 'Warszawa'. I am passing the searched city name with as efi.searchedCity . a) the address document contains value 'Warszawa' in field 'address.city' The result feature score is 1.98 b) the address document contains value 'War

LTR features and searching for field using multiple words

2017-10-20 Thread Dariusz Wojtas
nition is surrounded with double quotes. All these variants work when I ask for single word, fail the same way with multiple words. The 'keyword_address' field definition is: and the value is copied from other fields: How do I correctly use this parser? Character escaping? How? Best regards, Dariusz Wojtas

Re: LTR features and searching for field using multiple words

2017-10-20 Thread Dariusz Wojtas
'type:entity' score='max' v='keyword_address:\"${fullAddressStreet}\"'}" } } Best regards, Dariusz Wojtas On Fri, Oct 20, 2017 at 11:49 AM, Dariusz Wojtas wrote: > Hi, > > Recently I work with LTR features. > In some of these features I use the

SOLR 7.2 and LTR

2017-12-27 Thread Dariusz Wojtas
Hi, I am using SOLR 7.0 and use the ltr parser. The configuration I use works nicely under SOLR 7.0.0. I am trying to upgrade to 7.2.0 but whenever I want to use my handler, I get an exception: "rq parameter must be a RankQuery" The exact response is: org.apache.solr.common.SolrException org.ap

Re: SOLR 7.2 and LTR

2017-12-28 Thread Dariusz Wojtas
edThreadPool$2.run(QueuedThreadPool.java:589) at java.lang.Thread.run(Unknown Source) Best regards, Dariusz Wojtas On Thu, Dec 28, 2017 at 1:03 PM, Diego Ceccarelli (BLOOMBERG/ LONDON) < dceccarel...@bloomberg.net> wrote: > Hello Dariusz, > > Can you look into the sol

Re: SOLR 7.2 and LTR

2017-12-28 Thread Dariusz Wojtas
* *,_query_ defined in initParams * defType=ltr, but then the main query, which is of type edismax, cannot be instantiated because of NPE Any Hint how to use LTR with 7.2? Best regards, Dariusz Wojtas On Thu, Dec 28, 2017 at 6:11 PM, Christine Poerschke (BLOOMBERG/ LONDON) < cpoersc...@bloom

Re: SOLR 7.2 and LTR

2017-12-29 Thread Dariusz Wojtas
n complained if I missed to pass it's rerank query. Worked if the query was passed. With 7.2 it does not come to this point, it does not understand what rerank is and throws the exception above. Best regards, Dariusz Wojtas On Fri, Dec 29, 2017 at 10:57 AM, Diego Ceccarelli (BLOOMBERG/

Re: SOLR 7.2 and LTR

2018-01-02 Thread Dariusz Wojtas
I have created issue SOLR-11809 ( https://issues.apache.org/jira/browse/SOLR-11809) in JIRA and uploaded a minimal working configuration that shows the problem. I hope this will make it easier to verify and find some solution. Best regards, Dariusz Wojtas On Fri, Dec 29, 2017 at 11:35 AM

Empty XML output from SOLR streaming expression

2018-09-27 Thread Dariusz Wojtas
Hi, I am working with SOLR 7.4.0 and use streaming expressions. This works nicely, the result is produced in JSON format. But I need to have it in XML. Simplest query to show the problem: search(myCollection, zkHost="localhost:9983", qt="/select", q="*:*", fl="id", sort="id desc") Docs

Accessing multiValued field from within custom function

2019-01-03 Thread Dariusz Wojtas
nge anything here? In my case the whole index is on a single machine, but there are several replicas. Best regards, Dariusz Wojtas

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

LTR and working with feature stores

2018-01-12 Thread Dariusz Wojtas
ct) 2. my model works, only two features of the selected model (correct) And the final questions for this long email are: 1. why does it execute all features when i specify 'store'? 2. how do I specify the 'store', if I have more stores, but do not want to execute all their features? Best regards, Dariusz Wojtas

Re: LTR and working with feature stores

2018-01-13 Thread Dariusz Wojtas
. {!ltr reRankDocs=25 store=storeA model=simpleModelA} And {!ltr} executes 'model based calculation', not 'store based calculation'. Model knows what featues are required. Why are all features executed? Best regards, Dariusz Wojtas On Sat, Jan 13, 2018 at 4:03 PM, Diego

Re: LTR and working with feature stores

2018-01-13 Thread Dariusz Wojtas
Ups, Diego, I have just read your answer again. Now I see that it is [features] element that triggers calculation of all store features. That gives hope model only executed the features it needs ;) Best regards, Dariusz Wojtas On Sat, Jan 13, 2018 at 11:12 PM, Dariusz Wojtas wrote: >

strdist on nested doc field

2018-01-15 Thread Dariusz Wojtas
ulting score? I am trying with the {!parent} mode and {!function}, various combinations. But I do not get what I'd expect. Best regards, Dariusz Wojtas

Re: strdist on nested doc field

2018-01-15 Thread Dariusz Wojtas
tName:Adam +{!parent which=type:record v=$chq}&chq=+type:address +{!func}strdist('Shakespeare',address.street, edit) then I get exception: org.apache.solr.search.SyntaxError: Missing end to unquoted value starting at 37 str='strdist('Shakespeare',address.street,'

Re: strdist on nested doc field

2018-01-16 Thread Dariusz Wojtas
Please see the answers below. On Tue, Jan 16, 2018 at 8:40 AM, Mikhail Khludnev wrote: > On Tue, Jan 16, 2018 at 10:30 AM, Dariusz Wojtas > wrote: > > > Hello Mikhail, > > > > I've tried it and the query executes, but it does not treat strdist() as > a >

Simple string comparison by SOLR function

2018-01-18 Thread Dariusz Wojtas
27;test'),0,1) Exception: java.lang.UnsupportedOperationException at org.apache.lucene.queries.function.FunctionValues.doubleVal(FunctionValues.java:49) at org.apache.solr.search.function.SolrComparisonBoolFunction.compare(SolrComparisonBoolFunction.java:55) at org.apache.lucene.queries.function.valuesource.ComparisonBoolFunction$1.boolVal(ComparisonBoolFunction.java:61) Any hint how to achieve this? Best regards, Dariusz Wojtas

Re: Simple string comparison by SOLR function

2018-01-18 Thread Dariusz Wojtas
ok, I've found working solution using strdist(). If the result is less than 1.0 - these strings differ somehow. {!func}if(lt(strdist(\"${gender}\",\"male\",edit),1),0,1) this will let me go further with my logic. Best regards, Dariusz Wojtas On Thu, Jan 18, 2018 a

LTR and features operating on children doc data

2018-01-21 Thread Dariusz Wojtas
other cases. Can this be done? How? I am returning the top level documents, where type='record'. But do not know how to achieve children evaluation result, where there may be many children documents. I've tried parent and child block join, with no luck. Best regards, Dariusz Wojtas

Re: LTR and features operating on children doc data

2018-01-22 Thread Dariusz Wojtas
I really miss a way to call some aggreate function - in my case max() - on a range of children documents call within LTR feature. But XSLT with saxon have proven its value ;) I could put it in wiki, with some more details, if somebody hinted me how to do it. Best regards, Dariusz Wojtas On Sun, Ja

Parameter expansion and functions

2018-03-13 Thread Dariusz Wojtas
ult... v... } but it looks like this function expansion is applied at some later stage, and it fails when I try to put it in "q" definition. Best regards, Dariusz Wojtas

Boosting with 0 factor

2018-03-13 Thread Dariusz Wojtas
kip it since boost of factor 0 will boost the result? In short: will it bring performance savings, or not? {!edismax qf='keyword_id^0 keyword_nonid^2 keyword_lastNames^2 keyword_names^1' v=$searchedTerms} Best regards, Dariusz Wojtas

Streaming expressions and fetch()

2018-06-17 Thread Dariusz Wojtas
Hi, I am trying to use streaming expressions with SOLR 7.3.1. I have successfully used innerJoin, leftOuterJoin and several other functions but failed to achieve expected results with the fetch() function. Example below is silmplfied, in reality the base search() function uses fuzzy matching and s

Re: Streaming expressions and fetch()

2018-06-18 Thread Dariusz Wojtas
at is basically the same construct that you > are having issues with. So, I think the next step is to try and reproduce > the problem that you are seeing in a test case. > > If you have a small sample test dataset I can use to reproduce the error > please create a jira ticket and I

Re: Streaming expressions and fetch()

2018-06-20 Thread Dariusz Wojtas
I have filled a JIRA Issue: SOLR-12505 Best regards, Darek On Mon, Jun 18, 2018 at 11:08 PM, Dariusz Wojtas wrote: > Hi, > I thing this might give some clue. > I tried to reproduce the issue with a collection called testCloud. > > fetch(testCloud1, > search(testC