SOLR and string comparison functions

2017-09-18 Thread Dariusz Wojtas
r 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

Rescoring from 0 - full

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

Re: SOLR and string comparison functions

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

Re: Rescoring from 0 - full

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

LTR 'feature' and passing date parameters

2017-10-18 Thread Dariusz Wojtas
:'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 <binoydala...@gmail.com> wrote: > Dariusz, > This problem is most probably occurring because solr does not store dates > in the format you've specified.

Re: Streaming expressions and fetch()

2018-06-18 Thread Dariusz Wojtas
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 will work o

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

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

LTR features and searching for field using multiple words

2017-10-20 Thread Dariusz Wojtas
definition is: and the value is copied from other fields: How do I correctly use this parser? Character escaping? How? Best regards, Dariusz Wojtas

LTR feature and proximity search with Block Join Parent query Parser

2017-10-19 Thread Dariusz Wojtas
g 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 'WarszawaRado' in field 'address.city' The result score is 0.0 How to return a score that finds so

Re: LTR features and searching for field using multiple words

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

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

Re: SOLR 7.2 and LTR

2017-12-29 Thread Dariusz Wojtas
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/ LONDON) &

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 at 3:4

Simple string comparison by SOLR function

2018-01-18 Thread Dariusz Wojtas
nValues.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: strdist on nested doc field

2018-01-15 Thread Dariusz Wojtas
+{!parent which=type:record v=$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,' Best regards, Dariusz Wojtas On Tue, Jan 16

strdist on nested doc field

2018-01-15 Thread Dariusz Wojtas
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-16 Thread Dariusz Wojtas
Please see the answers below. On Tue, Jan 16, 2018 at 8:40 AM, Mikhail Khludnev <m...@apache.org> wrote: > On Tue, Jan 16, 2018 at 10:30 AM, Dariusz Wojtas <dwoj...@gmail.com> > wrote: > > > Hello Mikhail, > > > > I've tried it and the query

LTR and features operating on children doc data

2018-01-21 Thread Dariusz Wojtas
ne? 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 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 <dwoj...@gmail.

Re: LTR and working with feature stores

2018-01-13 Thread Dariusz Wojtas
=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 Ceccarelli < diego.ceccare...@gmail.

LTR and working with feature stores

2018-01-12 Thread Dariusz Wojtas
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: SOLR 7.2 and LTR

2017-12-28 Thread Dariusz Wojtas
) 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 solr logs for a stack trace or ERROR logs? > > > > From: solr-user@

Re: SOLR 7.2 and LTR

2017-12-28 Thread Dariusz Wojtas
ned 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...@bloomberg.net> wrote

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

Re: LTR and features operating on children doc data

2018-01-22 Thread Dariusz Wojtas
e 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, Jan 21, 2018 at 12:35 PM, Dariusz Wojtas <dwoj...@gmail.c

Parameter expansion and functions

2018-03-13 Thread Dariusz Wojtas
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
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

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")