Hello Dima
You didn't mention the query parser. Perhaps
https://solr.apache.org/guide/solr/latest/query-guide/other-parsers.html#simple-query-parser
might be suitable. Regarding stacktraces in logs. I believe stack trances
might be disabled via log config pls check
https://logging.apache.org/log4j/2.x/manual/layouts.html#pattern-layout (if
solr still uses log4j2).

On Wed, May 29, 2024 at 5:12 PM Dmitri Maziuk <dmitri.maz...@gmail.com>
wrote:

> Hi all,
>
> our website has a search box that essentially passes its contents to
> Solr without any massaging. This works fine 99% of the time, the other
> 1% is when a misbehaving bot hits it and tries stuffing all sorts of
> crap in there.
>
> Then bad things happen: Java's overly verbose exception stack traces
> fill up the disk faster than the logs are rotated, CPU load spikes, etc.
>
> So, question: does anyone know of a validator/sanitizer we can use clean
> up the terms before passing them on to Solr? -- My google-fu fails to
> find one.
>
> TIA
> Dima
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to