Hi Enrique, You are right; this is a defect in Lucene.Net and the "text" field in "Term.cs" should not be public since the "Text()" function returns its value.
I don't know any other way unless using reflection. Can you open an issue in jira? (https://issues.apache.org/jira/browse/LUCENENET) DIGY From: Enrique Martínez Zuñiga [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2008 7:58 PM To: lucene-net-user@incubator.apache.org Subject: Ambiguous name in text's term class (vb.net) Hello all, I'm having trouble in the code below to get the terms' text due to ambiguous name in VB.NET (case insensitive). To avoid this behavior I had to rename all the references of the variable text in term.cs to _text. Dim idxReader As IndexReader = IndexReader.Open(strIdxFolder) Dim Terms As TermEnum = idxReader.Terms(New Term(strField, "")) Dim strTermText As String = Terms.Term().Text Can you tell me if there is another way to access this property in VB.NET? Gracias, Enrique Martínez Zúñiga Analista Programador Sistemas de Información Biblioteca - ITESO University http://biblio.iteso.mx