Hi,

I am newbie to Solr. We recently started using Solr.

We are using Solr to process the server logs. We are creating the indexes for 
each line of the logs, so that users would be able to do a fine grain search 
upto second/ms.

Now what we are observing is , the index size that is being created is almost 
double the size of the actual log size. i.e if the logs size is say 1 MB, the 
actual index size is around 2 MB.

Could anyone let us know what can be done to reduce the index size. Do we need 
to change any configurations/delete any files which are created during the 
indexing processes, but not required for searching..

Our schema is as follows:

   <field name="pkey" type="string" indexed="true" stored="true" 
required="false" /> 
   <field name="date" type="date" indexed="true" stored="true" 
omitNorms="true"/>
   <field name="level" type="string" indexed="true" stored="true"/>
   <field name="app" type="string" indexed="true" stored="true"/>
   <field name="server" type="string" indexed="true" stored="true"/>
   <field name="port" type="string" indexed="true" stored="true"/>
   <field name="class" type="string" indexed="true" stored="true"/>
   <field name="method" type="string" indexed="true" stored="true"/>
   <field name="filename" type="string" indexed="true" stored="true"/>
   <field name="linenumber" type="string" indexed="true" stored="true"/>
   <field name="message" type="text" indexed="true" stored="true"/>

message field holds the actual logtext.

Thanks,
sS


      

Reply via email to