Re: project related configsets need to be deployed in both data and solr install folders ?

2017-02-01 Thread Renee Sun
thanks for your time!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/project-related-configsets-need-to-be-deployed-in-both-data-and-solr-install-folders-tp4317897p4318382.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: project related configsets need to be deployed in both data and solr install folders ?

2017-02-01 Thread Chris Hostetter

Renee: Huh ... so sounds like something must have been wonky in your 
original install?

Glad it worked out for you, and thanks for following up.


: Date: Wed, 1 Feb 2017 15:09:54 -0700 (MST)
: From: Renee Sun 
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: Re: project related configsets need to be deployed in both data and
: solr install folders ?
: 
: Hi Chris,
: since I have been playing with this install, and I am not certain if I have
: unknowingly messed some other settings. I want to avoid put in a false Jira
: wasting your time. 
: 
: I wiped out everything on my solr box and did  a fresh install of solr
: 6.4.0, made sure my config file set are placed in the data folder (
: /myprojectdata/solr/data/configsets/myproject_configs ).  My solr home is
: set to  /myprojectdata/solr/data , it is WORKING now.
: 
: I did not have to specify configSetBaseDir in the solr.xml (its in the data
: folder  /myprojectdata/solr/data/solr.xml, NOT the one in install folder
: /opt/solr/server/solr/solr.xml), the default correctly point at the solr
: home which is my data folder, and find the config file set.
: 
: So there is no problem, everything works fine, I can create new core without
: any issue. There is no bug whatsoever.
: 
: Thank you for all your help!
: 
: 
: 
: 
: --
: View this message in context: 
http://lucene.472066.n3.nabble.com/project-related-configsets-need-to-be-deployed-in-both-data-and-solr-install-folders-tp4317897p4318369.html
: Sent from the Solr - User mailing list archive at Nabble.com.
: 

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


Re: project related configsets need to be deployed in both data and solr install folders ?

2017-02-01 Thread Renee Sun
Hi Chris,
since I have been playing with this install, and I am not certain if I have
unknowingly messed some other settings. I want to avoid put in a false Jira
wasting your time. 

I wiped out everything on my solr box and did  a fresh install of solr
6.4.0, made sure my config file set are placed in the data folder (
/myprojectdata/solr/data/configsets/myproject_configs ).  My solr home is
set to  /myprojectdata/solr/data , it is WORKING now.

I did not have to specify configSetBaseDir in the solr.xml (its in the data
folder  /myprojectdata/solr/data/solr.xml, NOT the one in install folder
/opt/solr/server/solr/solr.xml), the default correctly point at the solr
home which is my data folder, and find the config file set.

So there is no problem, everything works fine, I can create new core without
any issue. There is no bug whatsoever.

Thank you for all your help!




--
View this message in context: 
http://lucene.472066.n3.nabble.com/project-related-configsets-need-to-be-deployed-in-both-data-and-solr-install-folders-tp4317897p4318369.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: project related configsets need to be deployed in both data and solr install folders ?

2017-02-01 Thread Chris Hostetter

Based on your description of the problem, and the fact that explicitly 
setting configSetBaseDir in your solr.xml works, I suspect there is some 
sort of weird bug in how the "default" configSetBaseDir is determined in 
some diff code paths in Solr.

We should definitely file a jira issue tracking this -- i would have done 
so already, but to be completley honest: I got a little lost in reading 
your initial email as far as how you have solr installed, and how you are 
running it.

Can you please create a new "Solr" jira here...

https://issues.apache.org/jira/secure/CreateIssue!default.jspa

... and include the following details...

1) a description of how you installed solr - directory listings of 
the various dirs making it clear which files are where would be helpful.  

2) a copy of the solr.in.sh * solr.xml files for each "project"

3) an example of exactly how you start solr (ie: the exact bin/solr 
command you run)

4) the exact error you get when creating a collection depending on which 
directory does/doesn't contain a configset.

(Ideally: to make it really clear what's going on, it would be great if 
you could run this test with a "foo" configset in one dir, and a "bar" 
configset in the other dir, and show us what the diff error messages look 
like depending on which configset you try to use)

5) note how things change when you add configSetBaseDir



Does that make sense?





: Date: Tue, 31 Jan 2017 16:38:33 -0700 (MST)
: From: Renee Sun 
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: Re: project related configsets need to be deployed in both data and
: solr install folders ?
: 
: Thanks Erick!
: 
: I looked at solr twiki though if configSetBaseDir is not set, the default
: should be SOLR_HOME/configsets:
: 
: configSetBaseDir
: 
:   The directory under which configsets for solr cores can be found. 
Defaults
: to SOLR_HOME/configsets
: 
: and I do have my solr started with :
: 
: -Dsolr.solr.home=/myprojectdata/solr/data
: 
: I also deploy my config into:
: 
: /myprojectdata/solr/data/configsets/myproject_configs
: 
: anyways, looks like the default is not working?
: 
: I found this https://issues.apache.org/jira/browse/SOLR-6158, which seems to
: talk about the configSetBaseDir issue ...
: 
: I do set configSetBaseDir in solr.xml and it works now. Just wonder why the
: default wont work. Or I might did something else wrong.
: 
: 
: 
: 
: 
: --
: View this message in context: 
http://lucene.472066.n3.nabble.com/project-related-configsets-need-to-be-deployed-in-both-data-and-solr-install-folders-tp4317897p4318163.html
: Sent from the Solr - User mailing list archive at Nabble.com.
: 

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


Re: project related configsets need to be deployed in both data and solr install folders ?

2017-01-31 Thread Renee Sun
Thanks Erick!

I looked at solr twiki though if configSetBaseDir is not set, the default
should be SOLR_HOME/configsets:

configSetBaseDir

The directory under which configsets for solr cores can be found. 
Defaults
to SOLR_HOME/configsets

and I do have my solr started with :

-Dsolr.solr.home=/myprojectdata/solr/data

I also deploy my config into:

/myprojectdata/solr/data/configsets/myproject_configs

anyways, looks like the default is not working?

I found this https://issues.apache.org/jira/browse/SOLR-6158, which seems to
talk about the configSetBaseDir issue ...

I do set configSetBaseDir in solr.xml and it works now. Just wonder why the
default wont work. Or I might did something else wrong.





--
View this message in context: 
http://lucene.472066.n3.nabble.com/project-related-configsets-need-to-be-deployed-in-both-data-and-solr-install-folders-tp4317897p4318163.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: project related configsets need to be deployed in both data and solr install folders ?

2017-01-30 Thread Erick Erickson
Hmmm, did you try specifying the configSetBaseDir in solr.xml? See:
https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml


Best,
Erick

On Mon, Jan 30, 2017 at 3:54 PM, Renee Sun  wrote:
> Hi -
>
> We use separate solr install and data folders with a shared schema/config
> (configsets) in multi-cores setup, it seems the configsets need to be
> deployed in both places (we are running solr 6.4.0)?
>
> for example,
>
> solr is installed in /opt/solr, thus there is folder:
>
> /opt/solr/server/solr/configsets
>
> we separate the data into a different partition, thus there is:
>
> /mysolrdata/solr/data/configsets
>
> At first, I only deployed the project configsets to the solr install folder
> /opt/solr/server/solr/configsets :
>
> /opt/solr/server/solr/configsets/myproject_configs
>
> then when I create a core, solr complains it could not load config from
> /mysolrdata/solr/data/configsets/myproject_configs (the data folder):
>
> curl
> 'http://localhost:8983/solr/admin/cores?action=CREATE&name=abc&instanceDir=abc&configSet=myproject_configs'
> 
> 
> 400 name="QTime">14 name="error-class">org.apache.solr.common.SolrException name="root-error-class">org.apache.solr.common.SolrException name="msg">Error CREATEing SolrCore 'abc': Unable to create core [abc]
> Caused by: Could not load configuration from directory
> /mysolrdata/solr/data/configsets/myproject_configs name="code">400
> 
>
> So next, I moved the configs to /mysolrdata/solr/data/configsets, but it now
> complains it could not load config from the install folder
> /opt/solr/server/solr/configsets/myproject_configs with the same error.
>
> I had to copy the same config set to both folders ( I eventually did a
> symlink from the /opt/solr/server/solr/configsets/myproject_configs to
> /mysolrdata/solr/data/configsets), and it worked.
>
> I wonder if I have missed any settings to allow me only deploy the configset
> at one place: either my data folder or the install folder, I would assume
> the benefit is obvious.
>
> Thanks
> Renee
>
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/project-related-configsets-need-to-be-deployed-in-both-data-and-solr-install-folders-tp4317897.html
> Sent from the Solr - User mailing list archive at Nabble.com.


project related configsets need to be deployed in both data and solr install folders ?

2017-01-30 Thread Renee Sun
Hi -

We use separate solr install and data folders with a shared schema/config
(configsets) in multi-cores setup, it seems the configsets need to be
deployed in both places (we are running solr 6.4.0)?

for example, 

solr is installed in /opt/solr, thus there is folder:

/opt/solr/server/solr/configsets

we separate the data into a different partition, thus there is:

/mysolrdata/solr/data/configsets

At first, I only deployed the project configsets to the solr install folder
/opt/solr/server/solr/configsets :

/opt/solr/server/solr/configsets/myproject_configs

then when I create a core, solr complains it could not load config from
/mysolrdata/solr/data/configsets/myproject_configs (the data folder):

curl
'http://localhost:8983/solr/admin/cores?action=CREATE&name=abc&instanceDir=abc&configSet=myproject_configs'


40014org.apache.solr.common.SolrExceptionorg.apache.solr.common.SolrExceptionError CREATEing SolrCore 'abc': Unable to create core [abc]
Caused by: Could not load configuration from directory
/mysolrdata/solr/data/configsets/myproject_configs400


So next, I moved the configs to /mysolrdata/solr/data/configsets, but it now
complains it could not load config from the install folder
/opt/solr/server/solr/configsets/myproject_configs with the same error.

I had to copy the same config set to both folders ( I eventually did a
symlink from the /opt/solr/server/solr/configsets/myproject_configs to
/mysolrdata/solr/data/configsets), and it worked.

I wonder if I have missed any settings to allow me only deploy the configset
at one place: either my data folder or the install folder, I would assume
the benefit is obvious.

Thanks
Renee






--
View this message in context: 
http://lucene.472066.n3.nabble.com/project-related-configsets-need-to-be-deployed-in-both-data-and-solr-install-folders-tp4317897.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Start independent Zookeeper from within Solr install

2013-07-23 Thread Upayavira
The use case is to prevent the necessity to download something else
(zookeeper) when everything needed to run it is (likely) present in the
Solr distribution already.

Maybe we don't need to start Jetty, maybe we can start Zookeeper with an
extra script in the Solr codebase.

At present, if you are unfamiliar with ZooKeeper, getting it up and
running can be a challenge (I've seen quite a few people fail at it
during training scenarios).

Upayavira

On Tue, Jul 23, 2013, at 03:21 PM, Timothy Potter wrote:
> Curious what the use case is for this? Zookeeper is not an HTTP
> service so loading it in Jetty by itself doesn't really make sense. I
> also think this creates more work for the Solr team especially since
> setting up a production ensemble shouldn't take more than a few
> minutes once you have the nodes provisioned.
> 
> On Tue, Jul 23, 2013 at 7:05 AM, Upayavira  wrote:
> > Assumptions:
> >
> >  * you currently have two choices to start Zookeeper: run it embedded
> >  within Solr, or download it from the ZooKeeper site and start it
> >  independently.
> >  * everything you need to run ZooKeeper (embedded or not) is included
> >  within the Solr distribution
> >
> > Assuming I've got the above right, then currently starting an embedded
> > ZooKeeper is easy (-DzkRun), and starting an ensemble is irritatingly
> > complex.
> >
> > So, my question is, how hard would it be to start Zookeeper without
> > Solr, but from within the Solr codebase? -DensembleOnly or some such,
> > causes Solr not to load, but Zookeeper still starts. I'm assuming that
> > Jetty would still listen on port 8983, but it wouldn't initialise the
> > Solr webapp:
> >
> > java -DzkRun -DzkEnsembleOnly
> > -DzkHosts=zkhost01:9983,zkhost02:9983,zkhost03:9983 -jar start.jar
> >
> > Is this possible? If it is, I'm happy to have a go at making it happen.
> >
> > Upayavira
> >
> >


Re: Start independent Zookeeper from within Solr install

2013-07-23 Thread Timothy Potter
Curious what the use case is for this? Zookeeper is not an HTTP
service so loading it in Jetty by itself doesn't really make sense. I
also think this creates more work for the Solr team especially since
setting up a production ensemble shouldn't take more than a few
minutes once you have the nodes provisioned.

On Tue, Jul 23, 2013 at 7:05 AM, Upayavira  wrote:
> Assumptions:
>
>  * you currently have two choices to start Zookeeper: run it embedded
>  within Solr, or download it from the ZooKeeper site and start it
>  independently.
>  * everything you need to run ZooKeeper (embedded or not) is included
>  within the Solr distribution
>
> Assuming I've got the above right, then currently starting an embedded
> ZooKeeper is easy (-DzkRun), and starting an ensemble is irritatingly
> complex.
>
> So, my question is, how hard would it be to start Zookeeper without
> Solr, but from within the Solr codebase? -DensembleOnly or some such,
> causes Solr not to load, but Zookeeper still starts. I'm assuming that
> Jetty would still listen on port 8983, but it wouldn't initialise the
> Solr webapp:
>
> java -DzkRun -DzkEnsembleOnly
> -DzkHosts=zkhost01:9983,zkhost02:9983,zkhost03:9983 -jar start.jar
>
> Is this possible? If it is, I'm happy to have a go at making it happen.
>
> Upayavira
>
>


Start independent Zookeeper from within Solr install

2013-07-23 Thread Upayavira
Assumptions:

 * you currently have two choices to start Zookeeper: run it embedded
 within Solr, or download it from the ZooKeeper site and start it
 independently.
 * everything you need to run ZooKeeper (embedded or not) is included
 within the Solr distribution

Assuming I've got the above right, then currently starting an embedded
ZooKeeper is easy (-DzkRun), and starting an ensemble is irritatingly
complex.

So, my question is, how hard would it be to start Zookeeper without
Solr, but from within the Solr codebase? -DensembleOnly or some such,
causes Solr not to load, but Zookeeper still starts. I'm assuming that
Jetty would still listen on port 8983, but it wouldn't initialise the
Solr webapp:

java -DzkRun -DzkEnsembleOnly
-DzkHosts=zkhost01:9983,zkhost02:9983,zkhost03:9983 -jar start.jar

Is this possible? If it is, I'm happy to have a go at making it happen.

Upayavira




Re: SOLR Install

2013-04-26 Thread jnduan
If you unpack the solr.war file,you'll find some configures in web.xml like:

SolrRequestFilter
org.apache.solr.servlet.SolrDispatchFilter



SolrRequestFilter
/*



Zookeeper

org.apache.solr.servlet.ZookeeperInfoServlet



LoadAdminUI

org.apache.solr.servlet.LoadAdminUiServlet


and so on…

These configurations tells your application how to dispatch requests to solr.

Note that the SolrRequestFilter in solr.war's web.xml mapped to url pattern /*, 
if you want to make some sub-context for solr,maybe it should like /solr/* 
,then you need put the web resources like admin.html/css/img/js/tpl from 
solr.war in the *same* directory of your web app's WebRoot folder.For 
example,if you make SolrRequestFilter mapped to url pattern to /solr/* ,your 
WebRoot dir is looks like:

WebRoot
|
solr
|
---admin.html
|
---css
|……..

It is what the comment said in web.xml of solr.war,and I think it also what 
make you confused like you asked in the original email thread.

In my web.xml , I just copy the whole content of solr,paste them in mine and 
edit some url mapping.

在 2013-4-26,下午10:04,Peri Subrahmanya  写道:

> Jundan,
> 
> I got all the setup correctly i.e got the maven dependencies, and using
> maven overlay copy all the solr files to the WEB-INF directory and also
> specify solr.home. The issue is that when I try to access any of the solr
> urls like /admin.html or /dataimport, nothing seems to be happening.
> 
> So I m not sure  how to correctly the web.xml; Would it be possible to
> share your web.xml please?
> 
> Thank you,
> Peri Subrahmanya
> HTC Global Services
> (Development Manager for System Integration on Kuali OLE project @ Indiana
> University, Bloomington, USA)
> Cell: (+1) 618.407.3521
> Skype/Gtalk: peri.subrahmanya
> 
> *** DISCLAIMER *** This is a PRIVATE message. If you are not the
> intended recipient, please delete without copying and kindly advise us
> by e-mail of the mistake in delivery.
> NOTE: Regardless of content, this e-mail shall not operate to bind HTC
> Global Services to any order or other contract unless pursuant to
> explicit written agreement or government initiative expressly permitting
> the use of e-mail for such purpose.
> 
> 
> 
> 
> On 4/26/13 9:51 AM, "jnduan"  wrote:
> 
>> Hi Peri,
>> I think that document mesa you can deploy your own web app and solr in
>> one container like tomcat,but with different
>> context path.
>> If you want to bring solr in your project, you just need add some maven
>> dependencies like:
>> 
>>   org.apache.solr
>>   solr-core
>>   4.2.1
>> 
>> 
>>   org.apache.solr
>>   solr-test-framework
>>   ${solr.version}
>> 
>> 
>> This is what I do exactly.
>> Then you need to prefer a 'solr.home' dir in your project,and write some
>> code in web.xml to configure some filter and servlet what solr need.I
>> copied those configures and some admin page form solr.war.
>> 
>> I hope this could help ,best regards!
>> 
>> 
>> 在 2013-4-25,上午12:58,Peri Subrahmanya  写道:
>> 
>>> I m trying to use solr as part of another maven based web application.
>>> I m
>>> not sure how to wire the two war files. Any help please? I found this
>>> documentation in SOLR but unsure how to go about it.
>>> 
>>> 
>>>   
>>> 
>>> 
>>> Thank you,
>>> Peri Subrahmanya
>>> 
>>> 
>>> 
>>> 
>>> On 4/24/13 12:52 PM, "Michael Della Bitta"
>>>  wrote:
>>> 
 "solrservice.php" and the text of that error both sound like parts of
 Typo3... they're definitely not part of Solr. You should ask on a list
 devoted to Typo3 to figure out what to do in this situation. It likely
 won't involve reconfiguring Solr.
 
 Michael Della Bitta
 
 
 Appinions
 18 East 41st Street, 2nd Floor
 New York, NY 10017-6271
 
 www.appinions.com
 
 Where Influence Isn¹t a Game
 
 
 On Wed, Apr 24, 2013 at 11:53 AM, vishal gupta
 
 wrote:
> Hi i am using Solr 4.2.0 and extension 2.8.2  with Typo3. Whever I try
> to do
> indexing pages and news pages It gets only 3.29% indexed. I checked a
> developer log and found error in solrservice.php. And in solr admin it
> is
> giving "Dups is not defined please add it". What should i do in this
> case?
> If possible please send me the settings of schema.xml and
> solrconfig.xml .i
> am new to typo3 and solr both.
> 
> 
> 
> --
> View this message in context:
> 
> http://lucene.472066.n3.nabble.com/Solr-indeing-Partially-working-tp405
> 86
> 23.html
> Sent from the Solr - User mailing list archive at Nabble.com.
 
 
 
 
>>> 
>>> 
>>> 
>>> 
>>> *** DISCLAIMER *** This is a PRIVATE message. If you are not the
>>> intended recipie

Re: SOLR Install

2013-04-26 Thread jnduan
Hi Peri,
I think that document mesa you can deploy your own web app and solr in one 
container like tomcat,but with different
 context path.
If you want to bring solr in your project, you just need add some maven 
dependencies like:

org.apache.solr
solr-core
4.2.1
 

org.apache.solr
solr-test-framework
${solr.version}
 

This is what I do exactly.
Then you need to prefer a 'solr.home' dir in your project,and write some code 
in web.xml to configure some filter and servlet what solr need.I copied those 
configures and some admin page form solr.war.

I hope this could help ,best regards!


在 2013-4-25,上午12:58,Peri Subrahmanya  写道:

> I m trying to use solr as part of another maven based web application. I m
> not sure how to wire the two war files. Any help please? I found this
> documentation in SOLR but unsure how to go about it.
> 
> 
>
> 
> 
> Thank you,
> Peri Subrahmanya
> 
> 
> 
> 
> On 4/24/13 12:52 PM, "Michael Della Bitta"
>  wrote:
> 
>> "solrservice.php" and the text of that error both sound like parts of
>> Typo3... they're definitely not part of Solr. You should ask on a list
>> devoted to Typo3 to figure out what to do in this situation. It likely
>> won't involve reconfiguring Solr.
>> 
>> Michael Della Bitta
>> 
>> 
>> Appinions
>> 18 East 41st Street, 2nd Floor
>> New York, NY 10017-6271
>> 
>> www.appinions.com
>> 
>> Where Influence Isn¹t a Game
>> 
>> 
>> On Wed, Apr 24, 2013 at 11:53 AM, vishal gupta 
>> wrote:
>>> Hi i am using Solr 4.2.0 and extension 2.8.2  with Typo3. Whever I try
>>> to do
>>> indexing pages and news pages It gets only 3.29% indexed. I checked a
>>> developer log and found error in solrservice.php. And in solr admin it
>>> is
>>> giving "Dups is not defined please add it". What should i do in this
>>> case?
>>> If possible please send me the settings of schema.xml and
>>> solrconfig.xml .i
>>> am new to typo3 and solr both.
>>> 
>>> 
>>> 
>>> --
>>> View this message in context:
>>> http://lucene.472066.n3.nabble.com/Solr-indeing-Partially-working-tp40586
>>> 23.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
> 
> 
> 
> 
> *** DISCLAIMER *** This is a PRIVATE message. If you are not the intended 
> recipient, please delete without copying and kindly advise us by e-mail of 
> the mistake in delivery.
> NOTE: Regardless of content, this e-mail shall not operate to bind HTC Global 
> Services to any order or other contract unless pursuant to explicit written 
> agreement or government initiative expressly permitting the use of e-mail for 
> such purpose.
> 
> 



SOLR Install

2013-04-24 Thread Peri Subrahmanya
I m trying to use solr as part of another maven based web application. I m
not sure how to wire the two war files. Any help please? I found this
documentation in SOLR but unsure how to go about it.
 




Thank you,
Peri Subrahmanya




On 4/24/13 12:52 PM, "Michael Della Bitta"
 wrote:

>"solrservice.php" and the text of that error both sound like parts of
>Typo3... they're definitely not part of Solr. You should ask on a list
>devoted to Typo3 to figure out what to do in this situation. It likely
>won't involve reconfiguring Solr.
>
>Michael Della Bitta
>
>
>Appinions
>18 East 41st Street, 2nd Floor
>New York, NY 10017-6271
>
>www.appinions.com
>
>Where Influence Isn¹t a Game
>
>
>On Wed, Apr 24, 2013 at 11:53 AM, vishal gupta 
>wrote:
>> Hi i am using Solr 4.2.0 and extension 2.8.2  with Typo3. Whever I try
>>to do
>> indexing pages and news pages It gets only 3.29% indexed. I checked a
>> developer log and found error in solrservice.php. And in solr admin it
>>is
>> giving "Dups is not defined please add it". What should i do in this
>>case?
>> If possible please send me the settings of schema.xml and
>>solrconfig.xml .i
>> am new to typo3 and solr both.
>>
>>
>>
>> --
>> View this message in context:
>>http://lucene.472066.n3.nabble.com/Solr-indeing-Partially-working-tp40586
>>23.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
>
>




*** DISCLAIMER *** This is a PRIVATE message. If you are not the intended 
recipient, please delete without copying and kindly advise us by e-mail of the 
mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind HTC Global 
Services to any order or other contract unless pursuant to explicit written 
agreement or government initiative expressly permitting the use of e-mail for 
such purpose.




RE: SOLR Install

2011-05-26 Thread Roger Shah
Thanks, Yuhan.  I will look into both methods.  Which is better or which method 
is recommended?

How do I search through a database?

Raj

-Original Message-
From: Yuhan Zhang [mailto:yzh...@onescreen.com] 
Sent: Monday, May 23, 2011 7:16 PM
To: solr-user@lucene.apache.org
Subject: Re: SOLR Install

Hi Raj,

To index files using java, use solrj:
http://www.google.com/search?q=solrj&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

To index files by a post request, follow this tutorial:
http://www.xml.com/pub/a/2006/08/09/solr-indexing-xml-with-lucene-andrest.html

Yuhan

On Mon, May 23, 2011 at 7:10 AM, Roger Shah  wrote:

> Hi,
>
> I am a new user and I have installed SOLR 3.1.0 and running Tomcat 7.0.
> I was able to run the example which shows the SOLR Admin screen.  Also
> posted an XML file by this command from dos prompt:  java -jar post.jar
> solr.xml.
>
> How can I get SOLR to search web sites and also search through other types
> of files, databases, etc?
>
> Instead of running the example that comes with SOLR, How do I create my
> own?
>
> Also can you point me to a SOLR Guide or documentation?  I did not see any
> detailed documentation.
>
> Please show me where can I post messages on the SOLR web site.
>
> Thanks,
> Raj
>
>
>


Re: SOLR Install

2011-05-23 Thread Yuhan Zhang
Hi Raj,

To index files using java, use solrj:
http://www.google.com/search?q=solrj&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

To index files by a post request, follow this tutorial:
http://www.xml.com/pub/a/2006/08/09/solr-indexing-xml-with-lucene-andrest.html

Yuhan

On Mon, May 23, 2011 at 7:10 AM, Roger Shah  wrote:

> Hi,
>
> I am a new user and I have installed SOLR 3.1.0 and running Tomcat 7.0.
> I was able to run the example which shows the SOLR Admin screen.  Also
> posted an XML file by this command from dos prompt:  java -jar post.jar
> solr.xml.
>
> How can I get SOLR to search web sites and also search through other types
> of files, databases, etc?
>
> Instead of running the example that comes with SOLR, How do I create my
> own?
>
> Also can you point me to a SOLR Guide or documentation?  I did not see any
> detailed documentation.
>
> Please show me where can I post messages on the SOLR web site.
>
> Thanks,
> Raj
>
>
>


Re: SOLR Install

2011-05-23 Thread Gora Mohanty
On Mon, May 23, 2011 at 7:40 PM, Roger Shah  wrote:
> Hi,
>
> I am a new user and I have installed SOLR 3.1.0 and running Tomcat 7.0.
> I was able to run the example which shows the SOLR Admin screen.  Also posted 
> an XML file by this command from dos prompt:  java -jar post.jar solr.xml.

Great.

> How can I get SOLR to search web sites and also search through other types of 
> files, databases, etc?

Solr does not crawl websites. You probably want Nutch, or some other
crawler. Files, and databases are possible

> Instead of running the example that comes with SOLR, How do I create my own?

Um, start by modifying the examples, maybe? There are more examples
that cover files, DB, etc. Please do ask here if you run into issues.

> Also can you point me to a SOLR Guide or documentation?  I did not see any 
> detailed documentation.

Er, what? Solr is probably among the best-documented FOSS projects, and
I can honestly say that because I have done none of the aforesaid
documentation :-)
the SolrWiki is fantastic:
* Complete list: http://wiki.apache.org/solr/FrontPage
* Initial tutorial: http://lucene.apache.org/solr/tutorial.html
* For easy data import from a database, you could consider
 using the DataImportHandler:
 http://wiki.apache.org/solr/DataImportHandler

> Please show me where can I post messages on the SOLR web site.

Not sure what that means.

Regards,
Gora


SOLR Install

2011-05-23 Thread Roger Shah
Hi,

I am a new user and I have installed SOLR 3.1.0 and running Tomcat 7.0.
I was able to run the example which shows the SOLR Admin screen.  Also posted 
an XML file by this command from dos prompt:  java -jar post.jar solr.xml.

How can I get SOLR to search web sites and also search through other types of 
files, databases, etc?

Instead of running the example that comes with SOLR, How do I create my own?

Also can you point me to a SOLR Guide or documentation?  I did not see any 
detailed documentation.

Please show me where can I post messages on the SOLR web site.

Thanks,
Raj