I think you can comment/wipe those queries like it's done for "newSearcher"
until you really need them.

On Fri, Jan 13, 2023 at 12:17 AM Mark Hieber <[email protected]> wrote:

> Thanks. Our values are the default as shown in
>
> https://solr.apache.org/guide/8_4/query-settings-in-solrconfig.html#query-related-listeners
> .
>
> Some of our cores have the unique field (we call it $id) (yes, it should
> not have the $, but that is legacy) set as type *solr.StrField*, some as
> *solr.UUIDField*
>
> Can you please explain what should go in the firstSearcher listener for
> each type?
>
> On Thu, Jan 12, 2023 at 4:06 PM Mikhail Khludnev <[email protected]> wrote:
>
> > Here we go:
> > <str name="q">static
> > you should also have something like df or defaultField defined as uuid
> > field.
> >
> >
> > On Thu, Jan 12, 2023 at 11:37 PM Mark Hieber <[email protected]> wrote:
> >
> > > The only listeners which we have configured in our solrconfig.xml is in
> > the
> > > *query* section:
> > >
> > > <listener event="newSearcher" class="solr.QuerySenderListener">
> > >   <arr name="queries">
> > >     <!--
> > >        <lst><str name="q">solr</str><str name="sort">price
> > asc</str></lst>
> > >        <lst><str name="q">rocks</str><str name="sort">weight
> > > asc</str></lst>
> > >       -->
> > >   </arr>
> > > </listener>
> > > <listener event="firstSearcher" class="solr.QuerySenderListener">
> > >   <arr name="queries">
> > >     <lst>
> > >       <str name="q">static firstSearcher warming in
> solrconfig.xml</str>
> > >     </lst>
> > >   </arr>
> > > </listener>
> > >
> > >
> > > On Thu, Jan 12, 2023 at 3:27 PM Mikhail Khludnev <[email protected]>
> > wrote:
> > >
> > > > It seems like a listener configured in solrconfig.xml, and one of its
> > > > queries feeds a uuid field with the term 'static'. Not gonna work,
> you
> > > > know.
> > > >
> > > > On Thu, Jan 12, 2023 at 11:04 PM Mark Hieber <[email protected]>
> > wrote:
> > > >
> > > > > I am seeing the following exception in my SOLR log: (Solr 8.4.1)
> > > > >
> > > > > org.apache.solr.common.SolrException: Invalid UUID String: 'static'
> > > > > at org.apache.solr.schema.UUIDField.toInternal(UUIDField.java:88)
> > > > > at
> > > org.apache.solr.schema.FieldType.readableToIndexed(FieldType.java:409)
> > > > > at
> > > org.apache.solr.schema.FieldType.readableToIndexed(FieldType.java:417)
> > > > > at
> org.apache.solr.schema.FieldType.getFieldQuery(FieldType.java:898)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.solr.parser.SolrQueryParserBase.rawToNormal(SolrQueryParserBase.java:1019)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.solr.parser.SolrQueryParserBase.getBooleanQuery(SolrQueryParserBase.java:722)
> > > > > at org.apache.solr.parser.QueryParser.Query(QueryParser.java:238)
> > > > > at
> > > org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:131)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:260)
> > > > > at
> org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:49)
> > > > > at org.apache.solr.search.QParser.getQuery(QParser.java:174)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:160)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:302)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:211)
> > > > > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2596)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:74)
> > > > > at
> > > >
> org.apache.solr.core.SolrCore.lambda$getSearcher$18(SolrCore.java:2362)
> > > > > at
> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:210)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
> > > > > at java.base/java.lang.Thread.run(Thread.java:832)
> > > > >
> > > > > The thread is searcherExecutor-45-thread-1-processing-x:core_name.
> > > > > We have 7 cores on each host. We do not (at the same time) get
> errors
> > > on
> > > > > each host, and usually only for 1 core at a time (but it’s not on
> the
> > > > same
> > > > > core).We have multiple hosts each hosting a StandAlone Solr
> Instance.
> > > > Each
> > > > > host indexes the same documents into their own local core, and the
> > > > queries
> > > > > for Solr are spread out over these hosts using a load balancer.In
> our
> > > > > schemas, we have a $id field (marked unique) and it is of type
> > > > > solr.StrField except in 2 schemas (we have 7 different cores), it
> is
> > of
> > > > > type solr.UUIDField.Questions:
> > > > >
> > > > > Is this error occurring during a query or indexing a document? We
> > have
> > > > > different logs for query and for indexing, and I do not see any
> > > > > correlation.
> > > > > What is causing this? Is it simply that we are passing in the
> String
> > > > > ‘static’ as the id?
> > > > >
> > > >
> > > >
> > > > --
> > > > Sincerely yours
> > > > Mikhail Khludnev
> > > > https://t.me/MUST_SEARCH
> > > > A caveat: Cyrillic!
> > > >
> > >
> >
> >
> > --
> > Sincerely yours
> > Mikhail Khludnev
> > https://t.me/MUST_SEARCH
> > A caveat: Cyrillic!
> >
>


-- 
Sincerely yours
Mikhail Khludnev
https://t.me/MUST_SEARCH
A caveat: Cyrillic!

Reply via email to