Re: Non-exists Field Query doesn't work when use defType=edismax

2020-09-14 Thread Erick Erickson
AND (*:* AND -field_to_exclude:*) > > for edismax defType: > (+(+(+some_field:hourly) +(+DisjunctionMaxQuery((doc_text_value:*\\:*)) > -field_to_exclude:*)))/no_coord > > > for default defType: > > > +(+some_field:hourly) +(+MatchAllDocsQuery(*:*) -field_to_exclude:

Re: Non-exists Field Query doesn't work when use defType=edismax

2020-09-14 Thread Iana Bondarska
Hi Erick, thanks for the response! I've checked parsed queries in debug mode and there is following difference: original query(this is value of the q parameter in the query) : (some_field:"hourly") AND (*:* AND -field_to_exclude:*) for edismax defType: (+(+(+so

Re: Non-exists Field Query doesn't work when use defType=edismax

2020-09-11 Thread Erick Erickson
nts that > contain ceratin field". > Currently, it looks like this: > *(*:* AND -field_to_exclude:*)* > > Full query is: > *((some_other_field:"value") AND ((*:* AND -field_to_exclude:*)))* > > If I use defType=edismax, nothing is found. If I use default defTyp

Non-exists Field Query doesn't work when use defType=edismax

2020-09-11 Thread Iana Bondarska
Hi everyone, I'm checking Solr query that contains condition "Exclude all documents that contain ceratin field". Currently, it looks like this: *(*:* AND -field_to_exclude:*)* Full query is: *((some_other_field:"value") AND ((*:* AND -field_to_exclude:*)))* If I use de

Re: local paramas only with defType=lucene?

2019-04-17 Thread Nicolas Franck
Yup Changes in Solr 7.2: local parameters only parsed when defType is either "lucene" or "func" cf. https://lucene.apache.org/solr/guide/7_3/solr-upgrade-notes.html#solr-7-2 cf. https://issues.apache.org/jira/browse/SOLR-11501 On 17 Apr 2019, at 10:35, Michae

local paramas only with defType=lucene?

2019-04-17 Thread Michael Aleythe, Sternwald
Hi everybody, is it correct that local parameters ( q={!edismax qf=MEDIA_ID v=283813390} ) in solr only work with the lucene query parser defined for the main query? I tried with dismax/edismax but it did not work. The documentation is not clear on this point. Best regards Michael Aleythe

Re: fq and defType

2015-06-01 Thread Mikhail Khludnev
fq={!edismax}you are welome On Mon, Jun 1, 2015 at 6:44 PM, wrote: > Hello, > > I need to parse some complicated queries that only works properly with the > edismax query parser, in q and fq parameters. I am testing with > defType=edismax, but it seems that this clause only a

Re: fq and defType

2015-06-01 Thread david . davila
Thank you! David De: Shawn Heisey Para: solr-user@lucene.apache.org, Fecha: 01/06/2015 18:53 Asunto: Re: fq and defType On 6/1/2015 10:44 AM, david.dav...@correo.aeat.es wrote: > I need to parse some complicated queries that only works properly with the > edismax query pars

Re: fq and defType

2015-06-01 Thread Shawn Heisey
On 6/1/2015 10:44 AM, david.dav...@correo.aeat.es wrote: > I need to parse some complicated queries that only works properly with the > edismax query parser, in q and fq parameters. I am testing with > defType=edismax, but it seems that this clause only affects to the q > paramet

fq and defType

2015-06-01 Thread david . davila
Hello, I need to parse some complicated queries that only works properly with the edismax query parser, in q and fq parameters. I am testing with defType=edismax, but it seems that this clause only affects to the q parameter. Is there any way to set edismax to the fq parameter? Thank you very

Re: looking for working example defType=term

2013-08-12 Thread Michael Della Bitta
field?! That sounds like a particularly lame use of > Solr. > > > > Declare the field as a "string" field and then Solr won't break it up > into tokens (other than special characters like slash.) > > > > Or just set the defType="term" parameter. And t

Re: looking for working example defType=term

2013-08-12 Thread Chris Hostetter
1) the "terM" parser doesn't use the "df" default field param -- it requires an "f" local param. 2) because the "f" localparam is required, you can't really use "term" in defType 3) what you can do is something like this... q={!

Re: looking for working example defType=term

2013-08-12 Thread Walter Underwood
like a particularly lame use of > Solr. > > Declare the field as a "string" field and then Solr won't break it up into > tokens (other than special characters like slash.) > > Or just set the defType="term" parameter. And the term query parser req

Re: looking for working example defType=term

2013-08-12 Thread Jack Krupansky
) Or just set the defType="term" parameter. And the term query parser requires the "f" parameter to be set to the field (maybe that was your NPE). You can set those parameters in the "defaults" section of the request handler. Or, you can you the real-time g

FW: looking for working example defType=term

2013-08-12 Thread Johannes Elsinghorst
om] Sent: Montag, 12. August 2013 17:10 To: Johannes Elsinghorst Subject: Re: looking for working example defType=term How are you using the term query parser? The term query parser requires a field to be specified. I use it this way: q=*:*&fq={!term f=category}electronics The "t

Re: looking for working example defType=term

2013-08-12 Thread Jack Krupansky
-- Jack Krupansky -Original Message- From: Johannes Elsinghorst Sent: Monday, August 12, 2013 11:01 AM To: solr-user@lucene.apache.org Subject: looking for working example defType=term Hi, can anyone provide a working example (solrconfig.xml,schema.xml) using the TermQParserPlugin? I always

looking for working example defType=term

2013-08-12 Thread Johannes Elsinghorst
Hi, can anyone provide a working example (solrconfig.xml,schema.xml) using the TermQParserPlugin? I always get a Nullpointer-Exception on startup: 8920 [searcherExecutor-4-thread-1] ERROR org.apache.solr.core.SolrCore û java.lang.NullPointerException at org.apache.solr.search.TermQParser

Re: defType

2013-08-10 Thread Koji Sekiguchi
: Saturday, August 10, 2013 6:30 PM To: solr-user@lucene.apache.org Subject: defType What are the possible options for defType? lucene dismax edismax Others? -- Bill Bell billnb...@gmail.com cell 720-256-8076

Re: defType

2013-08-10 Thread Erik Hatcher
t; -Original Message- From: William Bell Sent: Saturday, August 10, >> 2013 6:30 PM To: solr-user@lucene.apache.org Subject: defType >> What are the possible options for defType? >> >> lucene >> dismax >> edismax >> >> Others? >> >> -- >> Bill Bell >> billnb...@gmail.com >> cell 720-256-8076 > > > > -- > Bill Bell > billnb...@gmail.com > cell 720-256-8076

Re: defType

2013-08-10 Thread William Bell
> > -Original Message- From: William Bell Sent: Saturday, August 10, > 2013 6:30 PM To: solr-user@lucene.apache.org Subject: defType > What are the possible options for defType? > > lucene > dismax > edismax > > Others? > > -- > Bill Bell > billnb...@gmail.

Re: defType

2013-08-10 Thread Jack Krupansky
The full list is in my book. What did you need in particular? (Actually, I forgot to add "maxscore" to my list.) -- Jack Krupansky -Original Message- From: William Bell Sent: Saturday, August 10, 2013 6:30 PM To: solr-user@lucene.apache.org Subject: defType What are th

defType

2013-08-10 Thread William Bell
What are the possible options for defType? lucene dismax edismax Others? -- Bill Bell billnb...@gmail.com cell 720-256-8076

Re: Queryparser works when specified as q parameter but not as defType

2012-10-07 Thread Erik Hatcher
There's a difference between q={!myparser f=field}value and q=field:value&defType=myparser in that the latter requires that your parser do the splitting of "field" at the colon. Does your parser do this? The former allows for a local param to specify the f(ield) through

Re: Why is using edismax in Admin UI puts edismax=true but not defType=edismax?

2012-09-07 Thread Chris Hostetter
: I am not edismax=true as a flag actually does anything (Solr4 beta): Alexandre: You are 100% correct, this appears to be a bug in the Admin UI. Thank you for reporting it... https://issues.apache.org/jira/browse/SOLR-3811 -Hoss

Why is using edismax in Admin UI puts edismax=true but not defType=edismax?

2012-09-07 Thread Alexandre Rafalovitch
7;=>0,'docs'=>[] }, 'debug'=>{ 'rawquerystring'=>'text', 'querystring'=>'text', 'parsedquery'=>'TitleEN:text', 'parsedquery_toString'=>'TitleEN:text', &

Re: Does defType overrides other settings for default request handler

2012-07-24 Thread amitesh116
Thanks for your reply. It worked for me. For now, I am using it in query string only. But planning to move it to solrconfig. Thanks again! ~Amitesh -- View this message in context: http://lucene.472066.n3.nabble.com/Does-defType-overrides-other-settings-for-default-request-handler

Re: Does defType overrides other settings for default request handler

2012-07-20 Thread Erick Erickson
t;/ and > some *mm * settings. Recently, we have started using *defType=edismax * in > query params. With this change, we have observed significant drop in results > count. We doubt that SOLR is using default operator="AND" and hence reducing > the results count. Please confirm if our

Does defType overrides other settings for default request handler

2012-07-19 Thread amitesh116
Hi, We have used *dismax* in our SOLR config with /defaultOperator="OR"/ and some *mm * settings. Recently, we have started using *defType=edismax * in query params. With this change, we have observed significant drop in results count. We doubt that SOLR is using default operator="

Re: Dismax weird behaior wrt defType

2012-03-02 Thread Ahmet Arslan
> Query 1: > http://localhost:8085/solr/select/?q=abc&version=2.2&start=0&rows=10&indent=on&defType=dismax > [defType with capital T -- does not fetch results] > > Query 2: > http://localhost:8085/solr/select/?q=abc&version=2.2&start=0&rows=1

Dismax weird behaior wrt defType

2012-03-02 Thread Husain, Yavar
A weird behavior with respect to "defType". Any clues will be appreciated. Query 1: http://localhost:8085/solr/select/?q=abc&version=2.2&start=0&rows=10&indent=on&defType=dismax [defType with capital T -- does not fetch results] Query 2: http://localhost:8085/

Re: defType argument weirdness

2011-08-15 Thread Chris Hostetter
: Huh, I'm still not completely following. I'm sure it makes sense if you : understand the underlying implemetnation, but I don't understand how 'type' : and 'defType' don't mean exactly the same thing, just need to be expressed : differently in differen

Re: defType argument weirdness

2011-07-20 Thread Jonathan Rochkind
Huh, I'm still not completely following. I'm sure it makes sense if you understand the underlying implemetnation, but I don't understand how 'type' and 'defType' don't mean exactly the same thing, just need to be expressed differently in different locatio

RE: defType argument weirdness

2011-07-20 Thread Chris Hostetter
: I do understand what they do (at least well enough to use them), but I : find it confusing that it's called "defType" as a main param, but "type" : in a LocalParam, when to me they both seem to do the same thing -- which "type" as a localparam in a que

Re: defType argument weirdness

2011-07-20 Thread Yonik Seeley
On Tue, Jul 19, 2011 at 11:41 PM, Jonathan Rochkind wrote: > Is it generally recognized that this terminology is confusing, or is it just > me? > > I do understand what they do (at least well enough to use them), but I find > it confusing that it's called "defType&qu

RE: defType argument weirdness

2011-07-19 Thread Jonathan Rochkind
Is it generally recognized that this terminology is confusing, or is it just me? I do understand what they do (at least well enough to use them), but I find it confusing that it's called "defType" as a main param, but "type" in a LocalParam, when to me they both

Re: defType argument weirdness

2011-07-19 Thread Yonik Seeley
On Tue, Jul 19, 2011 at 1:25 PM, Naomi Dushay wrote: > Regardless, I thought that     defType=dismax&q=*:*   is supposed to be > equivalent to  q={!defType=dismax}*:*  and also equivalent to q={!dismax}*:* Not quite - there is a very subtle distinction. {!dismax} is short for {!t

Re: defType argument weirdness

2011-07-19 Thread Naomi Dushay
qf_dismax and pf_dismax are irrelevant -- I shouldn't have included that info. They are passed in the url and they work; they do not affect this problem. Your reminder of debugQuery was a good one - I use that a lot but forgot in this case. Regardless, I thought that de

Re: defType argument weirdness

2011-07-19 Thread Erik Hatcher
On Jul 18, 2011, at 19:15 , Naomi Dushay wrote: > I found a weird behavior with the Solr defType argument, perhaps with > respect to default queries? > > q={!defType=dismax}*:* hits this is the confusing one. defType is a Solr request parameter, but not something that works

Re: defType argument weirdness

2011-07-18 Thread William Bell
dismax does not work with a=*:* defType=dismax&q=*:* no hits You need to switch this to: defType=dismax&q.alt=*:* no hits On Mon, Jul 18, 2011 at 8:44 PM, Erick Erickson wrote: > What are qf_dismax and pf_dismax? They are meaningless to > Solr. Try adding &deb

Re: defType argument weirdness

2011-07-18 Thread Erick Erickson
;ll see output like: +() () showing that your query isn't actually going against any fields Best Erick On Mon, Jul 18, 2011 at 7:15 PM, Naomi Dushay wrote: > I found a weird behavior with the Solr  defType argument, perhaps with > respect to default queries? > >  defType=dismax

defType argument weirdness

2011-07-18 Thread Naomi Dushay
I found a weird behavior with the Solr defType argument, perhaps with respect to default queries? defType=dismax&q=*:* no hits q={!defType=dismax}*:* hits defType=dismax hits Here is the request handler, which I explicitly indicate: lu

defType=Dismax questions

2010-06-17 Thread Blargy
Sorry for the repost but I posted under DismaxRequestHandler when I should have listed it as DismaxQueryParser.. ie im using defType=dismax I have a title field and a description filed. I am searching across both fields but I don't want description matches unless they are within some sl