Re: Which solrconfig.xml and schema file should I start with?

2020-05-10 Thread Jan Høydahl
Choose whichever example is closest to what you want to do. Then strip it down 
removing everything you don’t use. Note that _default configset has schema 
guessing enabled which you don’t want in production.

Jan Høydahl

> 9. mai 2020 kl. 22:34 skrev Steven White :
> 
> Hi everyone,
> 
> There are multiple copies with each a bit different of the
> files solrconfig.xml and the various schema files.  Should I be using
> what's under \solr-8.5.1\server\solr\configsets\_default\conf as my
> foundation to build on?
> 
> Thanks
> 
> Steve


Re: which solrconfig.xml

2015-09-04 Thread Mikhail Khludnev
Mark,
Thanks for your feedback. Making Solr handy is important for us.

On Fri, Sep 4, 2015 at 1:43 PM, Mark Fenbers  wrote:

> Chris,
>
> The document "Uploading Structured Data Store Data with the Data Import
> Handler" has a number of references to solrconfig.xml, starting on Page 2
> and continuing on page 3 in the section "Configuring solrconfig.xml".  It
> also is mentioned on Page 5 in the "Property Writer" and the "Data Sources"
> sections.  And other places in this document as well.
>
> The solrconfig.xml file is also referenced (without a path) in the "Solr
> Quick Start" document, in the Design Overview section and other sections as
> well.  None of these references suggests the location of the solrconfig.xml
> file.  Doing a "find . -name solrconfig.xml" from the Solr home directory
> reveals about a dozen or so of these files in various subdirectories.
> Thus, my confusion as to which one I need to customize...
>

Here I can only suggest to get into SolrAdmin, pick a particular core, and
find Instance directory on Overview tab. Here is the directory, which you
can run find for solrconfig.xml on.
I just wonder what exactly we can contribute into the guide?

We have
https://cwiki.apache.org/confluence/display/solr/Configuring+solrconfig.xml
The solrconfig.xml file is located in the conf/ directory for each
collection.


>
> I feel ready to graduate from the examples in "Solr Quick Start" document,
> e.g., using bin/solr -e dih and have fed in existing files on disk.  The
> tutorial was *excellent* for this part.  But now I want to build a "real"
> index using *my own* data from a database.  In doing this, I find the
> coaching in the tutorial to be rather absent.  For example, I haven't read
> in any of the documents I have found so far an explanation of why one might
> want to use more than one Solr node and more than one shard, or what the
> advantages are of using Solr in cloud mode vs stand-alone mode.

https://cwiki.apache.org/confluence/display/solr/SolrCloud

..., these capabilities provide distributed indexing and search
capabilities, supporting the following features:

   - ...
   - *Automatic load balancing and fail-over for queries*



> As a result, I had to improvise/guess/trial-and-error.  I did manage to
> configure my own data source and changed my queries to apply to my own
> data, but I did something wrong somewhere in solrconfig.xml because I get
> errors when running, now.  I solved some of them by copying the *.jar files
> from the ./dist directory to the solr/lib directory (a tip I found when I
> googled the error message), but that only helped to a certain point.
>
> I will post more specific questions about my issues when I have a chance
> to re-investigate that (hopefully later today).
>
> I have *not* found specific Java code examples using Solr yet, but I
> haven't exhausted exploring the Solr website yet.  Hopefully, I'll find
> some examples using Solr in Java code...
>

https://cwiki.apache.org/confluence/display/solr/Using+SolrJ
I think the essential parts are covered there.


>
> Mark
>
>
> On 9/2/2015 9:51 PM, Chris Hostetter wrote:
>
>> : various $HOME/solr-5.3.0 subdirectories.  The documents/tutorials say
>> to edit
>> : the solrconfig.xml file for various configuration details, but they
>> never say
>> : which one of these dozen to edit.  Moreover, I cannot determine which
>> version
>>
>> can you please give us a specific examples (ie: urls, page numbers &
>> version of the ref guide, etc...) of documentation that tell you to edit
>> the solrconfig.xml w/o being explicit about where to to find it so that we
>> can fix the docs?
>>
>> FWIW: The official "Quick Start" tutorial does not mention editing
>> solrconfig.xml at all...
>>
>> http://lucene.apache.org/solr/quickstart.html
>>
>>
>>
>> -Hoss
>> http://www.lucidworks.com/
>>
>>
>


-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics





Re: which solrconfig.xml

2015-09-04 Thread Erick Erickson
Mark:

Right, the problem with Google searches (as you well know) is that you
get random snippets from all over the place, ones that often assume
some background knowledge.

There are several good books around that tend to have things arranged
progressively that might be a good investment, here's a good one:

http://www.amazon.com/Solr-Action-Trey-Grainger/dp/1617291021

and searching "apache solr" on Amazon turns up a bunch of others.

Best,
Erick



On Fri, Sep 4, 2015 at 4:43 AM, Mark Fenbers  wrote:
> Chris,
>
> The document "Uploading Structured Data Store Data with the Data Import
> Handler" has a number of references to solrconfig.xml, starting on Page 2
> and continuing on page 3 in the section "Configuring solrconfig.xml".  It
> also is mentioned on Page 5 in the "Property Writer" and the "Data Sources"
> sections.  And other places in this document as well.
>
> The solrconfig.xml file is also referenced (without a path) in the "Solr
> Quick Start" document, in the Design Overview section and other sections as
> well.  None of these references suggests the location of the solrconfig.xml
> file.  Doing a "find . -name solrconfig.xml" from the Solr home directory
> reveals about a dozen or so of these files in various subdirectories.  Thus,
> my confusion as to which one I need to customize...
>
> I feel ready to graduate from the examples in "Solr Quick Start" document,
> e.g., using bin/solr -e dih and have fed in existing files on disk.  The
> tutorial was *excellent* for this part.  But now I want to build a "real"
> index using *my own* data from a database.  In doing this, I find the
> coaching in the tutorial to be rather absent.  For example, I haven't read
> in any of the documents I have found so far an explanation of why one might
> want to use more than one Solr node and more than one shard, or what the
> advantages are of using Solr in cloud mode vs stand-alone mode.  As a
> result, I had to improvise/guess/trial-and-error.  I did manage to configure
> my own data source and changed my queries to apply to my own data, but I did
> something wrong somewhere in solrconfig.xml because I get errors when
> running, now.  I solved some of them by copying the *.jar files from the
> ./dist directory to the solr/lib directory (a tip I found when I googled the
> error message), but that only helped to a certain point.
>
> I will post more specific questions about my issues when I have a chance to
> re-investigate that (hopefully later today).
>
> I have *not* found specific Java code examples using Solr yet, but I haven't
> exhausted exploring the Solr website yet.  Hopefully, I'll find some
> examples using Solr in Java code...
>
> Mark
>
> On 9/2/2015 9:51 PM, Chris Hostetter wrote:
>>
>> : various $HOME/solr-5.3.0 subdirectories.  The documents/tutorials say to
>> edit
>> : the solrconfig.xml file for various configuration details, but they
>> never say
>> : which one of these dozen to edit.  Moreover, I cannot determine which
>> version
>>
>> can you please give us a specific examples (ie: urls, page numbers &
>> version of the ref guide, etc...) of documentation that tell you to edit
>> the solrconfig.xml w/o being explicit about where to to find it so that we
>> can fix the docs?
>>
>> FWIW: The official "Quick Start" tutorial does not mention editing
>> solrconfig.xml at all...
>>
>> http://lucene.apache.org/solr/quickstart.html
>>
>>
>>
>> -Hoss
>> http://www.lucidworks.com/
>>
>


Re: which solrconfig.xml

2015-09-04 Thread Mark Fenbers

Chris,

The document "Uploading Structured Data Store Data with the Data Import 
Handler" has a number of references to solrconfig.xml, starting on Page 
2 and continuing on page 3 in the section "Configuring solrconfig.xml".  
It also is mentioned on Page 5 in the "Property Writer" and the "Data 
Sources" sections.  And other places in this document as well.


The solrconfig.xml file is also referenced (without a path) in the "Solr 
Quick Start" document, in the Design Overview section and other sections 
as well.  None of these references suggests the location of the 
solrconfig.xml file.  Doing a "find . -name solrconfig.xml" from the 
Solr home directory reveals about a dozen or so of these files in 
various subdirectories.  Thus, my confusion as to which one I need to 
customize...


I feel ready to graduate from the examples in "Solr Quick Start" 
document, e.g., using bin/solr -e dih and have fed in existing files on 
disk.  The tutorial was *excellent* for this part.  But now I want to 
build a "real" index using *my own* data from a database.  In doing 
this, I find the coaching in the tutorial to be rather absent.  For 
example, I haven't read in any of the documents I have found so far an 
explanation of why one might want to use more than one Solr node and 
more than one shard, or what the advantages are of using Solr in cloud 
mode vs stand-alone mode.  As a result, I had to 
improvise/guess/trial-and-error.  I did manage to configure my own data 
source and changed my queries to apply to my own data, but I did 
something wrong somewhere in solrconfig.xml because I get errors when 
running, now.  I solved some of them by copying the *.jar files from the 
./dist directory to the solr/lib directory (a tip I found when I googled 
the error message), but that only helped to a certain point.


I will post more specific questions about my issues when I have a chance 
to re-investigate that (hopefully later today).


I have *not* found specific Java code examples using Solr yet, but I 
haven't exhausted exploring the Solr website yet.  Hopefully, I'll find 
some examples using Solr in Java code...


Mark

On 9/2/2015 9:51 PM, Chris Hostetter wrote:

: various $HOME/solr-5.3.0 subdirectories.  The documents/tutorials say to edit
: the solrconfig.xml file for various configuration details, but they never say
: which one of these dozen to edit.  Moreover, I cannot determine which version

can you please give us a specific examples (ie: urls, page numbers &
version of the ref guide, etc...) of documentation that tell you to edit
the solrconfig.xml w/o being explicit about where to to find it so that we
can fix the docs?

FWIW: The official "Quick Start" tutorial does not mention editing
solrconfig.xml at all...

http://lucene.apache.org/solr/quickstart.html



-Hoss
http://www.lucidworks.com/





Re: which solrconfig.xml

2015-09-03 Thread Mikhail Khludnev
Hello,

fwiw, a handy tool to answer such questions is $lsof -p 

On Wed, Sep 2, 2015 at 11:03 PM, Mark Fenbers  wrote:

> Hi,  I've been fiddling with Solr for two whole days since
> downloading/unzipping it.  I've learned a lot by reading 4 documents and
> the web site.  However, there are a dozen or so instances of solrconfig.xml
> in various $HOME/solr-5.3.0 subdirectories.  The documents/tutorials say to
> edit the solrconfig.xml file for various configuration details, but they
> never say which one of these dozen to edit.  Moreover, I cannot determine
> which version is being used once I start solr, so that I would know which
> instance of this file to edit/customize.
>
> Can you help??
>
> Thanks!
> Mark
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics





Re: which solrconfig.xml

2015-09-02 Thread Chris Hostetter
: various $HOME/solr-5.3.0 subdirectories.  The documents/tutorials say to edit
: the solrconfig.xml file for various configuration details, but they never say
: which one of these dozen to edit.  Moreover, I cannot determine which version

can you please give us a specific examples (ie: urls, page numbers & 
version of the ref guide, etc...) of documentation that tell you to edit 
the solrconfig.xml w/o being explicit about where to to find it so that we 
can fix the docs?

FWIW: The official "Quick Start" tutorial does not mention editing 
solrconfig.xml at all...

http://lucene.apache.org/solr/quickstart.html



-Hoss
http://www.lucidworks.com/


Re: which solrconfig.xml

2015-09-02 Thread Alexandre Rafalovitch
Have you looked at Admin Web UI in details yet? When you look at the
"Overview" page, on the right hand side, it lists a bunch of
directories. You want one that says "Instance". Then, your
solrconfig.xml is in "conf" directory under that.

Regards,
   Alex.
P.s. Welcome!


Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


On 2 September 2015 at 17:03, Mark Fenbers  wrote:
> Hi,  I've been fiddling with Solr for two whole days since
> downloading/unzipping it.  I've learned a lot by reading 4 documents and the
> web site.  However, there are a dozen or so instances of solrconfig.xml in
> various $HOME/solr-5.3.0 subdirectories.  The documents/tutorials say to
> edit the solrconfig.xml file for various configuration details, but they
> never say which one of these dozen to edit.  Moreover, I cannot determine
> which version is being used once I start solr, so that I would know which
> instance of this file to edit/customize.
>
> Can you help??
>
> Thanks!
> Mark