Re: Schema required?

2010-10-18 Thread Otis Gospodnetic
Solr requires a schema.
But Lucene does not! :)

Otis

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



- Original Message 
> From: Frank Calfo 
> To: "solr-user@lucene.apache.org" 
> Sent: Mon, October 18, 2010 5:25:27 PM
> Subject: Schema required?
> 
> We need to index documents where the fields in the document can change  
>frequently.
> 
> It appears that we would need to update our Solr schema  definition before we 
>can reindex using new fields.
> 
> Is there any way to  make the Solr schema optional?
> 
> 
> 
> --frank
> 
> 


Re: Schema required?

2010-10-18 Thread Jonathan Rochkind

Frank Calfo wrote:

We need to index documents where the fields in the document can change 
frequently.

It appears that we would need to update our Solr schema definition before we 
can reindex using new fields.

Is there any way to make the Solr schema optional?
  
No. But you can design your schema more flexibly than you are designing 
it.  Design it in a more abstract way, so it doesn't in fact need to 
change when external factors change.


I mean, every time you change your schema you are going to have to 
change any client applications that use your solr index to look things 
up using new fields and such too, right? You don't want to go changing 
your schema all the time. You want to design your schema so it doesn't 
need to change.


Solr is not an rdbms. You do not need to 'normalize' your data, or 
design your schema in the same way you would an rdbms. Design your 
schema to feed your actual and potential client apps.



Jonathan


  


RE: Schema required?

2010-10-18 Thread Tim Gilbert
Hi Frank,

Check out the Dynamic Fields option from here
http://wiki.apache.org/solr/SchemaXml

Tim

-Original Message-
From: Frank Calfo [mailto:fca...@aravo.com] 
Sent: Monday, October 18, 2010 5:25 PM
To: solr-user@lucene.apache.org
Subject: Schema required?

We need to index documents where the fields in the document can change
frequently.

It appears that we would need to update our Solr schema definition
before we can reindex using new fields.

Is there any way to make the Solr schema optional?



--frank