You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by srividhyau <sr...@hp.com> on 2013/05/13 19:44:31 UTC

Default Value for All Indexed Fields

We are using Lucene 3.0.3.   

Is there a way to set a default value to all fields being indexed in Lucene? 
Say, i want to set the default value as "NULL", indexed=NOT_ANALYZED,
stored=false. 

This default value will be used, when a particular document does not have a
value set for any field. 

-Vidhya 



--
View this message in context: http://lucene.472066.n3.nabble.com/Default-Value-for-All-Indexed-Fields-tp4063007.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


RE: Default Value for All Indexed Fields

Posted by Uwe Schindler <uw...@thetaphi.de>.
You have to do it yourself.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: srividhyau [mailto:srividhya.umashanker@hp.com]
> Sent: Monday, May 13, 2013 7:45 PM
> To: java-user@lucene.apache.org
> Subject: Default Value for All Indexed Fields
> 
> We are using Lucene 3.0.3.
> 
> Is there a way to set a default value to all fields being indexed in Lucene?
> Say, i want to set the default value as "NULL", indexed=NOT_ANALYZED,
> stored=false.
> 
> This default value will be used, when a particular document does not have a
> value set for any field.
> 
> -Vidhya
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Default-
> Value-for-All-Indexed-Fields-tp4063007.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org