>
> a) Since Solr is built on top of lucene, using SolrJ, can I still directly
> create custom documents, specify the field specifics etc (indexed, stored
> etc) and then map POJOs to those documents, simular to just using the
> straight lucene API?
>
> b) I took a quick look at the SolrJ javadocs but did not see anything in
> there that allowed me to customize if a field is stored, indexed, not
> indexed etc. How do I do that with SolrJ without having to go directly to
> the lucene apis?
>
> c) The SolrJ beans package. By annotating a POJO with @Field, how exactly
> does SolrJ treat that field? Indexed/stored, or just indexed? Is there any
> other way to control this?
>
The answer to all your questions above is the magical file called
schema.xml. For more read here - http://wiki.apache.org/solr/SchemaXml.
SolrJ is simply a java client to access (read and update from) the solr
server.

c) If I create a custom index outside of Solr using straight lucene, is it
> easy to import a pre-exisiting lucene index into a Solr Server?
>
As long as the Lucene index matches the definitions in your schema you can
use the same index. The data however needs to copied into a predictable
location inside SOLR_HOME.

Cheers
Avlesh

On Sun, Nov 15, 2009 at 9:26 AM, yz5od2 <woods5242-outdo...@yahoo.com>wrote:

> Hi,
> I am new to Solr but fairly advanced with lucene.
>
> In the past I have created custom Lucene search engines that indexed
> objects in a Java application, so my background is coming from this
> requirement
>
> a) Since Solr is built on top of lucene, using SolrJ, can I still directly
> create custom documents, specify the field specifics etc (indexed, stored
> etc) and then map POJOs to those documents, simular to just using the
> straight lucene API?
>
> b) I took a quick look at the SolrJ javadocs but did not see anything in
> there that allowed me to customize if a field is stored, indexed, not
> indexed etc. How do I do that with SolrJ without having to go directly to
> the lucene apis?
>
> c) The SolrJ beans package. By annotating a POJO with @Field, how exactly
> does SolrJ treat that field? Indexed/stored, or just indexed? Is there any
> other way to control this?
>
> c) If I create a custom index outside of Solr using straight lucene, is it
> easy to import a pre-exisiting lucene index into a Solr Server?
>
> thanks!
>

Reply via email to