Re: When search term has two stopwords ('and' and 'a') together, it doesn't work

2019-11-10 Thread Paras Lehana
Hi

So I don't think removing it completely is the way to go from the scenario
> we have


Removing stopwords is another story. I'm curious to find the reason
assuming that you keep on using stopwords. In some cases, stopwords are
really necessary.


Quite a considerable increase


If q.alt is giving you responses, it's confirmed that your stopwords filter
is working as expected. The problem definitely lies in the configuration of
edismax.



> I am sorry but I didn't understand what do you want me to do exactly with
> the lst (??) and qf and bf.


What combinations did you try? I was referring to the field-level boosting
you have applied in edismax config.

*Let me explain again:* In your solrconfig.xml, look at your /search
request handler. There are many qf and some bq boosts. I want you to remove
all of these, check response again (with q now) and keep on adding them
again (one by one) while looking for when the numFound drastically changes.

On Fri, 8 Nov 2019 at 23:47, David Hastings 
wrote:

> I use 3 word shingles with stopwords for my MLT ML trainer that worked
> pretty well for such a solution, but for a full index the size became
> prohibitive
>
> On Fri, Nov 8, 2019 at 12:13 PM Walter Underwood 
> wrote:
>
> > If we had IDF for phrases, they would be super effective. The 2X weight
> is
> > a hack that mostly works.
> >
> > Infoseek had phrase IDF and it was a killer algorithm for relevance.
> >
> > wunder
> > Walter Underwood
> > wun...@wunderwood.org
> > http://observer.wunderwood.org/  (my blog)
> >
> > > On Nov 8, 2019, at 11:08 AM, David Hastings <
> > hastings.recurs...@gmail.com> wrote:
> > >
> > > the pf and qf fields are REALLY nice for this
> > >
> > > On Fri, Nov 8, 2019 at 12:02 PM Walter Underwood <
> wun...@wunderwood.org>
> > > wrote:
> > >
> > >> I always enable phrase searching in edismax for exactly this reason.
> > >>
> > >> Something like:
> > >>
> > >>   title^16 keywords^8 text^2
> > >>
> > >> To deal with concepts in queries, a classifier and/or named entity
> > >> extractor can be helpful. If you have a list of concepts (“controlled
> > >> vocabulary”) that includes “Lamin A”, and that shows up in a query,
> that
> > >> term can be queried against the field matching that vocabulary.
> > >>
> > >> This is how LinkedIn separates people, companies, and places, for
> > example.
> > >>
> > >> wunder
> > >> Walter Underwood
> > >> wun...@wunderwood.org
> > >> http://observer.wunderwood.org/  (my blog)
> > >>
> > >>> On Nov 8, 2019, at 10:48 AM, Erick Erickson  >
> > >> wrote:
> > >>>
> > >>> Look at the “mm” parameter, try setting it to 100%. Although that’t
> not
> > >> entirely likely to do what you want either since virtually every doc
> > will
> > >> have “a” in it. But at least you’d get docs that have both terms.
> > >>>
> > >>> you may also be able to search for things like “Lamin A” _only as a
> > >> phrase_ and have some luck. But this is a gnarly problem in general.
> > Some
> > >> people have been able to substitute synonyms and/or shingles to make
> > this
> > >> work at the expense of a larger index.
> > >>>
> > >>> This is a generic problem with context. “Lamin A” is really a
> > “concept”,
> > >> not just two words that happen to be near each other. Searching as a
> > phrase
> > >> is an OOB-but-naive way to try to make it more likely that the ranked
> > >> results refer to the _concept_ of “Lamin A”. The assumption here is
> “if
> > >> these two words appear next to each other, they’re more likely to be
> > what I
> > >> want”. I say “naive” because “Lamins: A new approach to...” would
> > _also_ be
> > >> found for a naive phrase search. (I have no idea whether such a title
> > makes
> > >> sense or not, but you figured that out already)...
> > >>>
> > >>> To do this well you’d have to dive in to NLP/Machine learning.
> > >>>
> > >>> I truly wish we could have the DWIM search algorithm (Do What I
> Mean)….
> > >>>
> >  On Nov 8, 2019, at 11:29 AM, Guilherme Viteri 
> > >> wrote:
> > 
> >  HI Walter and Paras
> > 
> >  I indexed it removing all the references to StopWordFilter and I
> went
> > >> from 121 results to near 20K as the search term q="Lymphoid and a
> > >> non-Lymphoid cell" is matching entities such as "IFT A" or  "Lamin A".
> > So I
> > >> don't think removing it completely is the way to go from the scenario
> we
> > >> have, but I appreciate the suggestion…
> > 
> >  Yes the response is using fl=*
> >  I am trying some combinations at the moment, but yet no success.
> > 
> >  defType=edismax
> >  q.alt=Lymphoid and a non-Lymphoid cell
> >  Number of results=1599
> >  Quite a considerable increase, even though reasonable meaningful
> > >> results.
> > 
> >  I am sorry but I didn't understand what do you want me to do exactly
> > >> with the lst (??) and qf and bf.
> > 
> >  Thanks everyone with their inputs
> > 
> > 
> > > On 8 Nov 2019, at 06:45, Paras Lehana 
> > 

Re: subquery highlight

2019-11-10 Thread Mikhail Khludnev
Oh.. gosh. Sure. Subquery yields doc results only, neither of facets,
highlighting is attached to response.

On Mon, Nov 11, 2019 at 10:07 AM Vasily Ogar  wrote:

> My subquery is products I tried product.hl=on=products.title
> products.description and like this product.hl=on=title
> description and like this hl=on=title description and
> hl.products=on=title description.
> I don't know what else
>
>
> On Mon, Nov 11, 2019 at 8:25 AM Mikhail Khludnev  wrote:
>
> > Hello,
> > Have you tried to pefix hl.* params with particular subquery name?
> >
> > On Sun, Nov 10, 2019 at 11:46 PM Vasily Ogar 
> > wrote:
> >
> > > Hello,
> > > I am using Solr 8.2 and can't find out how to use highlight in the
> > > subquery. Is it possible at all?
> > > Thank you
> > >
> >
> >
> > --
> > Sincerely yours
> > Mikhail Khludnev
> >
>


-- 
Sincerely yours
Mikhail Khludnev


Re: Solr as a windows service

2019-11-10 Thread Paras Lehana
Hey Thushara,

Have you followed Installing Solr
 for
Windows already?

On Sat, 9 Nov 2019 at 10:42,  wrote:

> Hi,
>
> I am using solr 8.3 and I need it to use as a running background windows
> service. After the 5x release it’s not supporting external container as
> tomcat so what is the steps to use it as a background windows service
> running automatically. I used nssm to achieve this but other than that any
> thing possible or can deploy it still with tomcat?
> Regards,
>
> Thushara



-- 
-- 
Regards,

*Paras Lehana* [65871]
Development Engineer, Auto-Suggest,
IndiaMART Intermesh Ltd.

8th Floor, Tower A, Advant-Navis Business Park, Sector 142,
Noida, UP, IN - 201303

Mob.: +91-9560911996
Work: 01203916600 | Extn:  *8173*

-- 
IMPORTANT: 
NEVER share your IndiaMART OTP/ Password with anyone.


Re: Solr 7.7.0: Log file not getting generated

2019-11-10 Thread Paras Lehana
Hey Paresh,

Please see permanent logging in Configuring Logging
.
Check what is your log directory.

On Mon, 11 Nov 2019 at 12:27, Paresh  wrote:

> Hi,
>
> We just moved to Solr 7.7.0 and log file is not getting generated. Even log
> folder is not present there.
>
> I manually enabled all the logs through Solr-admin UI but it is not
> working.
>
> Is there any other way to enable the logs and how can we enable it at the
> start of Solr?
>
> Any help is appreciated.
>
> Thanks,
> Paresh
>
>
>
> --
> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>


-- 
-- 
Regards,

*Paras Lehana* [65871]
Development Engineer, Auto-Suggest,
IndiaMART Intermesh Ltd.

8th Floor, Tower A, Advant-Navis Business Park, Sector 142,
Noida, UP, IN - 201303

Mob.: +91-9560911996
Work: 01203916600 | Extn:  *8173*

-- 
IMPORTANT: 
NEVER share your IndiaMART OTP/ Password with anyone.


Re: subquery highlight

2019-11-10 Thread Vasily Ogar
My subquery is products I tried product.hl=on=products.title
products.description and like this product.hl=on=title
description and like this hl=on=title description and
hl.products=on=title description.
I don't know what else


On Mon, Nov 11, 2019 at 8:25 AM Mikhail Khludnev  wrote:

> Hello,
> Have you tried to pefix hl.* params with particular subquery name?
>
> On Sun, Nov 10, 2019 at 11:46 PM Vasily Ogar 
> wrote:
>
> > Hello,
> > I am using Solr 8.2 and can't find out how to use highlight in the
> > subquery. Is it possible at all?
> > Thank you
> >
>
>
> --
> Sincerely yours
> Mikhail Khludnev
>


Printing NULL character in log files.

2019-11-10 Thread Kayak28
Hello, Solr Community:

I am using Solr7.4.0 which uses log4j (version 2.11 from Solr's Chanes.txt)
as its component.
Some of the log files that Solr generated contain <0x00> (null characters)
in log files (like below)

Because of this issue, it is difficult for me to trace what
actually happened to the Solr.

Does anyone have the same issue before?
If anyone knows a way to fix this issue or a cause of this issue, could you
please let me know?

Any clue will be very appreciated.


[Example Log 1]

2019-10-20 06:02:03.643 INFO  (coreCloseExecutor-140-thread-4) [
 x:corename1] o.a.s.m.SolrMetricManager Closing metric reporters for
registry=solr.core.corename,
tag=4c16<0x00><0x00><0x00><0x00>...<0x00><0x00>00ff
2019-10-20 06:02:03.643 INFO  (coreCloseExecutor-140-thread-4) [
  x:corename1] o.a.s.m.r.SolrJmxReporter Closing reporter
[org.apache.solr.metrics.reporters.SolrJmxReporter@17281659: rootName =
null, domain = solr.core.corename, service url = null, agent id = null] for
registry solr.core.corename1/
com.codahale.metrics.MetricRegistry@6c9f45cc<0x00><0x00><0x00><0x00>..(continue
printing <0x00> untill the end of file.)

[Example Log 2]

2019-10-27 06:02:02.891 INFO  (coreCloseExecutor-140-thread-17) [
x:core2] o.a.s.m.r.SolrJmxReporter Closing reporter
[org.apache.solr.metrics.reporters.SolrJmxReporter@35e76d2e: rootName =
null, domain = solr.core.core2, service url = null, agent id = null] for
registry solr.core.core2 / com.codahale.metrics.MetricRegistry@76be90f4
2019-10-27 06:02:02.891 INFO  (coreCloseExecutor-140-thread-26) [
x:core3]<0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00>...<0x00><0x00>
o.a.s.m.SolrMetricManager Closing metric reporters for
registry=solr.core.TUN000, tag=34f04984
2019-10-27 06:02:02.891 INFO  (coreCloseExecutor-140-thread-26) [
x:TUN000] o.a.s.m.r.SolrJmxReporter Closing reporter
[org.apache.solr.metrics.reporters.SolrJmxReporter@378cecb: rootName =
null, domain = solr.core.TUN000, service url = null, agent id = null] for
registry solr.core.TUN000 / com.codahale.metrics.MetricRegistry@9c3410c
2019-10-27 06:02:05.063 INFO  (Thread-1) [   ] o.e.j.s.h.ContextHandler
Stopped o.e.j.w.WebAppContext@5fbe4146
{/solr,null,UNAVAILABLE}{file:///E:/apatchSolr/RCSS-basic-4.0.1/LUSOLR/solr/server//solr-webapp/webapp}
<0x00><0x00><0x00><0x00><0x00><0x00>...(printing <0x00> until the end of
the file)..<0x00><0x00>


Sincerely,
Kaya Ota


Solr 7.7.0: Log file not getting generated

2019-11-10 Thread Paresh
Hi,

We just moved to Solr 7.7.0 and log file is not getting generated. Even log
folder is not present there.

I manually enabled all the logs through Solr-admin UI but it is not working.

Is there any other way to enable the logs and how can we enable it at the
start of Solr?

Any help is appreciated.

Thanks,
Paresh



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-10 Thread Paras Lehana
Hi Sthitaprajna,

In Admin UI, select core and go to Schema. Select "title" and post the
screenshot (try to host it). Do the same for "id".

On Mon, 11 Nov 2019 at 09:14, Alexandre Rafalovitch 
wrote:

> You still have a mismatch between what you think the schema is
> (uniqueKey=title) and message of uniqueKey being id. Focus on that. Try to
> get schema FROM Solr instead og looking at one you are providing. Or look
> in Admin UI what it shows for field title and for field id.
>
> Regards,
> Alex
>
> On Mon, Nov 11, 2019, 2:30 PM Sthitaprajna,  >
> wrote:
>
> >
> >
> https://stackoverflow.com/questions/58763657/solr-missing-mandatory-uniquekey-field-id-or-unknown-field?noredirect=1#comment103816164_58763657
> >
> > May be this will help ? I added screenshots.
> >
> > On Fri, 8 Nov 2019, 22:57 Alexandre Rafalovitch, 
> > wrote:
> >
> > > Something does not make sense, because your schema defines "title" as
> > > the uniqueKey field, but your message talks about "id". Are you
> > > absolutely sure that the Solr/collection you get an error for is the
> > > same Solr where you are checking the schema?
> > >
> > > Also, do you have a bit more of the error and stack trace. I find
> > > "...or Unknown field" to be very puzzling. What are you trying to do
> > > when you get this error?
> > >
> > > Regards,
> > >   Alex.
> > >
> > > On Sat, 9 Nov 2019 at 01:05, Sthitaprajna <
> iamonlyforu.frie...@gmail.com
> > >
> > > wrote:
> > > >
> > > > Thanks,
> > > >
> > > > I did reload after solr configuration upload to zk
> > > > Yes i push the config set to zk and i can see all my changes are on
> > cloud
> > > > I turned off the managed schema
> > > > Yes it has, ypu could have seen it if the attachment are available. I
> > > have attached again may be it will be available.
> > > >
> > > > On Fri, 8 Nov 2019, 21:13 Erick Erickson, 
> > > wrote:
> > > >>
> > > >> Attachments are aggressively stripped by the mail server, so I can’t
> > > see them.
> > > >>
> > > >> Possibilities
> > > >> - you didn’t reload your core/collection
> > > >> - you didn’t push the configset to Zookeeper if using SolrCloud
> > > >> - you are using the managed schema, which uses a file called
> > > “managed-schema” rather than classic, which uses schema.xml
> > > >> - your input doesn’t really have a field “title”.
> > > >> - the doc just doesn’t have a field called “title” in it when it’s
> > sent
> > > to Solr.
> > > >>
> > > >>
> > > >> Best,
> > > >> Erick
> > > >>
> > > >> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna <
> > > iamonlyforu.frie...@gmail.com> wrote:
> > > >> >
> > > >> > title
> > > >>
> > >
> >
>


-- 
-- 
Regards,

*Paras Lehana* [65871]
Development Engineer, Auto-Suggest,
IndiaMART Intermesh Ltd.

8th Floor, Tower A, Advant-Navis Business Park, Sector 142,
Noida, UP, IN - 201303

Mob.: +91-9560911996
Work: 01203916600 | Extn:  *8173*

-- 
IMPORTANT: 
NEVER share your IndiaMART OTP/ Password with anyone.


Re: subquery highlight

2019-11-10 Thread Mikhail Khludnev
Hello,
Have you tried to pefix hl.* params with particular subquery name?

On Sun, Nov 10, 2019 at 11:46 PM Vasily Ogar  wrote:

> Hello,
> I am using Solr 8.2 and can't find out how to use highlight in the
> subquery. Is it possible at all?
> Thank you
>


-- 
Sincerely yours
Mikhail Khludnev


RE: [EXTERNAL] Re: XLSX Response Writer

2019-11-10 Thread Lewin Joy (TMNA)
Wow. This works. Thank you, Jan.

-Lewin

-Original Message-
From: Jan Høydahl  
Sent: Saturday, November 9, 2019 2:21 PM
To: solr-user@lucene.apache.org
Subject: Re: [EXTERNAL] Re: XLSX Response Writer

It is not the same thing. Instead of adding those lib lines to solr config you 
should copy the jars as it says in refguide, then restart solr. I think you can 
get trouble if you do it both ways.

Jan Høydahl

> 8. nov. 2019 kl. 18:59 skrev Lewin Joy (TMNA) :
> 
> Hi Jorn,
> 
> I am using Solr version 7.1
> 
> Correction on the change that I did. I just added the jars in my 
> solrconfig.xml file as below:
>
> regex=".*\.jar" />
> regex="solr-cell-\d.*\.jar" />
> 
> The cp command was the steps I saw in the reference guide. 
> I figured it should be the same thing.
> 
> -Lewin
> 
> -Original Message-
> From: Jörn Franke  
> Sent: Friday, November 8, 2019 11:51 AM
> To: solr-user@lucene.apache.org
> Subject: [EXTERNAL] Re: XLSX Response Writer
> 
> Which Solr version are you using?
> The below command suggest you are using 6.3 - is this correct?
> 
> Have you restarted the Solr server after copying?
> 
>> Am 08.11.2019 um 18:42 schrieb Lewin Joy (TMNA) :
>> 
>> Hi,
>> 
>> How do I use the xlsx response writer to extract my results to an excel file?
>> 
>> I made the changes as per documentation to include the jars and gave 
>> wt=xlsx. It did not work.
>> Would this only work with solrJ? Can't we use this in the query parameter 
>> =xlsx?
>> 
>> cp contrib/extraction/lib/*.jar server/solr-webapp/webapp/WEB-INF/lib/
>> cp dist/solr-cell-6.3.0.jar server/solr-webapp/webapp/WEB-INF/lib/
>> 
>> 
>> Thanks,
>> Lewin


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-10 Thread Alexandre Rafalovitch
You still have a mismatch between what you think the schema is
(uniqueKey=title) and message of uniqueKey being id. Focus on that. Try to
get schema FROM Solr instead og looking at one you are providing. Or look
in Admin UI what it shows for field title and for field id.

Regards,
Alex

On Mon, Nov 11, 2019, 2:30 PM Sthitaprajna, 
wrote:

>
> https://stackoverflow.com/questions/58763657/solr-missing-mandatory-uniquekey-field-id-or-unknown-field?noredirect=1#comment103816164_58763657
>
> May be this will help ? I added screenshots.
>
> On Fri, 8 Nov 2019, 22:57 Alexandre Rafalovitch, 
> wrote:
>
> > Something does not make sense, because your schema defines "title" as
> > the uniqueKey field, but your message talks about "id". Are you
> > absolutely sure that the Solr/collection you get an error for is the
> > same Solr where you are checking the schema?
> >
> > Also, do you have a bit more of the error and stack trace. I find
> > "...or Unknown field" to be very puzzling. What are you trying to do
> > when you get this error?
> >
> > Regards,
> >   Alex.
> >
> > On Sat, 9 Nov 2019 at 01:05, Sthitaprajna  >
> > wrote:
> > >
> > > Thanks,
> > >
> > > I did reload after solr configuration upload to zk
> > > Yes i push the config set to zk and i can see all my changes are on
> cloud
> > > I turned off the managed schema
> > > Yes it has, ypu could have seen it if the attachment are available. I
> > have attached again may be it will be available.
> > >
> > > On Fri, 8 Nov 2019, 21:13 Erick Erickson, 
> > wrote:
> > >>
> > >> Attachments are aggressively stripped by the mail server, so I can’t
> > see them.
> > >>
> > >> Possibilities
> > >> - you didn’t reload your core/collection
> > >> - you didn’t push the configset to Zookeeper if using SolrCloud
> > >> - you are using the managed schema, which uses a file called
> > “managed-schema” rather than classic, which uses schema.xml
> > >> - your input doesn’t really have a field “title”.
> > >> - the doc just doesn’t have a field called “title” in it when it’s
> sent
> > to Solr.
> > >>
> > >>
> > >> Best,
> > >> Erick
> > >>
> > >> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna <
> > iamonlyforu.frie...@gmail.com> wrote:
> > >> >
> > >> > title
> > >>
> >
>


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-10 Thread Sthitaprajna
https://stackoverflow.com/questions/58763657/solr-missing-mandatory-uniquekey-field-id-or-unknown-field?noredirect=1#comment103816164_58763657

May be this will help ? I added screenshots.

On Fri, 8 Nov 2019, 22:57 Alexandre Rafalovitch,  wrote:

> Something does not make sense, because your schema defines "title" as
> the uniqueKey field, but your message talks about "id". Are you
> absolutely sure that the Solr/collection you get an error for is the
> same Solr where you are checking the schema?
>
> Also, do you have a bit more of the error and stack trace. I find
> "...or Unknown field" to be very puzzling. What are you trying to do
> when you get this error?
>
> Regards,
>   Alex.
>
> On Sat, 9 Nov 2019 at 01:05, Sthitaprajna 
> wrote:
> >
> > Thanks,
> >
> > I did reload after solr configuration upload to zk
> > Yes i push the config set to zk and i can see all my changes are on cloud
> > I turned off the managed schema
> > Yes it has, ypu could have seen it if the attachment are available. I
> have attached again may be it will be available.
> >
> > On Fri, 8 Nov 2019, 21:13 Erick Erickson, 
> wrote:
> >>
> >> Attachments are aggressively stripped by the mail server, so I can’t
> see them.
> >>
> >> Possibilities
> >> - you didn’t reload your core/collection
> >> - you didn’t push the configset to Zookeeper if using SolrCloud
> >> - you are using the managed schema, which uses a file called
> “managed-schema” rather than classic, which uses schema.xml
> >> - your input doesn’t really have a field “title”.
> >> - the doc just doesn’t have a field called “title” in it when it’s sent
> to Solr.
> >>
> >>
> >> Best,
> >> Erick
> >>
> >> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna <
> iamonlyforu.frie...@gmail.com> wrote:
> >> >
> >> > title
> >>
>


subquery highlight

2019-11-10 Thread Vasily Ogar
Hello,
I am using Solr 8.2 and can't find out how to use highlight in the
subquery. Is it possible at all?
Thank you


Re: Solr 7.2.1 - unexpected docvalues type

2019-11-10 Thread Erick Erickson
So “lowercase” is, indeed, a solr.TextField, which is ineligible for docValues. 
Given that definition, the difference will be that a “string” type is totally 
un-analyzed, so the values that go into the index and the query itself will be 
case-sensitive. You’ll have to pre-process both to do the right thing.

> On Nov 9, 2019, at 6:15 PM, Antony Alphonse  wrote:
> 
> Hi Shawn,
> 
> Thank you. I switched the fieldType=string and it worked. I might have to
> check on the use-case to see if "string" will work for us.
> 
> I have noted the "lowercase" field type which I believe is similar to the
> one in schema ver 1.6.
> 
> 
>  positionIncrementGap="100">
>
> class="solr.KeywordTokenizerFactory" />
> />
>
>
> 
> Thanks,
> Antony
> 
> On Sat, Nov 9, 2019 at 7:52 AM Erick Erickson 
> wrote:
> 
>> We can’t answer whether you should change the field type for two reasons:
>> 
>> 1> It depends on your use case.
>> 2> we don’t know what the field type “lowercase” does. It’s composed of an
>> analysis chain that you may have changed. And whatever config you are using
>> may have changed with different releases of Solr.
>> 
>> Grouping is generally done on a docValues-eligible field type. AFAIK,
>> “lowercase” is a solr-text based field so is ineligible for docValues. I’ve
>> got to guess here, but I’d suggest you start with a fieldType of “string”,
>> and enable docValues on it.
>> 
>> Best,
>> Erick
>> 
>> 
>> 
>>> On Nov 9, 2019, at 12:54 AM, Antony Alphonse 
>> wrote:
>>> 
 
 Hi Shawn,
 
>>> 
>>> I will try that solution. Also I had to mention that the queries that
>> fail
>>> with this error has the "group.field":"lowercase". Should I change the
>>> field type?
>>> 
>>> Thanks,
>>> Antony
>> 
>> 



Re: Mixing query between different parsers

2019-11-10 Thread Alexandre Rafalovitch
Weird. Did you try echoParams=all just to see what other defaults are
picked up.

It feels like it picks up default parser and maybe default "df" value that
points to not existing text field.

Maybe enable debug too to see what it expands to.
Regards,
Alex

On Sun, Nov 10, 2019, 9:26 PM Kaminski, Adi, 
wrote:

> Hi,
> We are trying to mix the query clause and use different parsers with some
> syntax we've seen in the community.
> The idea to re-use all capabilities of the default query parser, and also
> xmlparser capabilities of position filter
> (which we asked about it previously and got some guidance from Solr
> community experts to use lucene SpanFirst for our use-case).
>
> We've tried to use a query consisting of two query parsers:
> q=_query_:"{!edismax qf=text_en}hello" _query_:"{!xmlparser} fieldName="text_en" end="5"
> boost="1.2">world"
>
> The response was HTTP 400 with message "undefined field text".
>
> Any idea what's wrong in the syntax, or maybe some direction to more
> official syntax of mixing parsers to query in different ways ?
>
> Thanks a lot in advance,
> Adi
>
>
>
> This electronic message may contain proprietary and confidential
> information of Verint Systems Inc., its affiliates and/or subsidiaries. The
> information is intended to be for the use of the individual(s) or
> entity(ies) named above. If you are not the intended recipient (or
> authorized to receive this e-mail for the intended recipient), you may not
> use, copy, disclose or distribute to anyone this message or any information
> contained in this message. If you have received this electronic message in
> error, please notify us by replying to this e-mail.
>


Mixing query between different parsers

2019-11-10 Thread Kaminski, Adi
Hi,
We are trying to mix the query clause and use different parsers with some 
syntax we've seen in the community.
The idea to re-use all capabilities of the default query parser, and also 
xmlparser capabilities of position filter
(which we asked about it previously and got some guidance from Solr community 
experts to use lucene SpanFirst for our use-case).

We've tried to use a query consisting of two query parsers:
q=_query_:"{!edismax qf=text_en}hello" _query_:"{!xmlparser}world"

The response was HTTP 400 with message "undefined field text".

Any idea what's wrong in the syntax, or maybe some direction to more official 
syntax of mixing parsers to query in different ways ?

Thanks a lot in advance,
Adi



This electronic message may contain proprietary and confidential information of 
Verint Systems Inc., its affiliates and/or subsidiaries. The information is 
intended to be for the use of the individual(s) or entity(ies) named above. If 
you are not the intended recipient (or authorized to receive this e-mail for 
the intended recipient), you may not use, copy, disclose or distribute to 
anyone this message or any information contained in this message. If you have 
received this electronic message in error, please notify us by replying to this 
e-mail.