A way to initialize existing core

2020-03-28 Thread Marius Ghita
I'm running Solr inside a VM and I'm mounting the core folder when the VM
boots up. However, if I destroy the VM and reinstall Solr, it won't
recognize the previously created core. How can I tell Solr in an automated
way to register the core?


spellcheccker offers less alternatives

2020-03-28 Thread Szűcs Roland
Hi All,

My question is that it is a feature or bug in solr spellchecker with the
default distance measure with maxedits 2:
A multiValued field includes:"József" and it's ASCIIfolding filtered
version "Jozsef" to support mobile search where users usually do not waste
of time to type József.
When I make a query with spellcheck.q=Józzef then interestingly I got back
only Jozsef as an alternative.

Is it normal that in case of multiValued fields only one term is returned?

Secondly, I tried collations by spellcheck.q="Józzef Atila" where the real
author field includes either József Attila or Jozsef Attila.

I got suggestion for Józzef like before and for Atila I got
correctly Attila but I always get collations null in solrj with Solr 8.4.1.
Here is my relevant solrconfig:


  default
  textSpell
  shortTextSpell
  solr.DirectSolrSpellChecker
  internal
  0.5
  2
  2
  5
  4
  0.01


schema:

















Thanks in advance,
Roland


Re: a new CLI tool bin/postlogs

2020-03-28 Thread Kayak28
Hello, Community:

Thank you for replaying.


I run for the single log file, then I could upload solr.log file to the
core...
But, I am still failing to load class "org.slf4j.impl.StaticLoggerBinder".
Should I download some jar file and configure it to some configuration file?


Sincerely,
Kaya Ota



2020年3月28日(土) 2:13 Joel Bernstein :

> It looks like it's not finding any files. Here is the code thats failing:
>
>
> https://github.com/apache/lucene-solr/blob/35d8e3de6d5931bfd6cba3221cfd0dca7f97c1a1/solr/core/src/java/org/apache/solr/util/SolrLogPostTool.java#L126
>
> A couple of things to note:
>
> postlogs should only be run on log files. So if there are different types
> of files in the directory it's pointed to it will have unexpected behavior.
> So you can run it on a single log file, or a directory containing only log
> files.
>
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Fri, Mar 27, 2020 at 5:18 AM Kayak28  wrote:
>
> > Hello, Community:
> >
> > Thank you for releasing Solr 8.5.0, which contains several interesting
> > tools.
> >  Especially, bin/postlogs is interesting one.
> > So, I have tried to run it on my computer (not-production use) as the
> > following.
> >
> > bin/postlogs http://localhost:8983/solr/logs ./server/logs/solr
> >
> > The result ended in:
> >
> > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> >
> > SLF4J: Defaulting to no-operation (NOP) logger implementation
> >
> > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further
> > details.
> >
> > Exception in thread "main" java.lang.NullPointerException
> >
> > at
> >
> org.apache.solr.util.SolrLogPostTool.gatherFiles(SolrLogPostTool.java:127)
> >
> > at org.apache.solr.util.SolrLogPostTool.main(SolrLogPostTool.java:65)
> >
> >
> > Is there anything I have to do before running the postlogs command ?
> >
> > Sincerely,
> > Kaya Ota
> >
> > --
> >
> > Sincerely,
> > Kaya
> > github: https://github.com/28kayak
> >
>


-- 

Sincerely,
Kaya
github: https://github.com/28kayak