cancel
Showing results for 
Search instead for 
Did you mean: 

TEXT field in Lucene search

dbevacqua
Champ in-the-making
Champ in-the-making
Hi

in http://wiki.alfresco.com/wiki/Search it says that the TEXT field is present on all entries. Debugging LuceneIndexerImpl2 it seems that this only applies to nodes with properties of type "content". Is this the case? Does it not make sense to include textual properties here or should I just use the "content" type rather than "text"?

Either way the wiki page is slightly misleading, but I won't change it yet.

Thanks,

Dominic
1 REPLY 1

kevinr
Star Contributor
Star Contributor
The TEXT field is present on all node entries, but it may not have any value. It is only filled for nodes that have full-text content indexed properties.

You can generate searches that use it and it will only return nodes that have content that match appropriately. For instance, this is the search I generate in the Alfresco web-client when the user wants to find all content documents that have file names of "Alfresco" or contain the text string "Alfresco":

TYPE:"{http://www.alfresco.org/model/content/1.0}content" AND (@\{http\://www.alfresco.org/model/content/1.0\}name:alfresco TEXT:alfresco)

Thanks,

Kevin