lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yousef Ourabi <your...@gmail.com>
Subject Field.Keyword vs new Field(String, String, true, true, true)
Date Fri, 24 Jun 2005 18:46:18 GMT
I have a quick question on the Field class. What is the difference between this:

for ()
Field content = new Field("content", contentArray[i], true, true, true, true);
doc.add(content);

and this:

doc.add(Field.Keyword("userAlias", userAlias ));

In the first example where the constructor is uesed will the second
term be entered as a Keyword by default? I am a little confused
because the JavaDoc's list both and I am not clear on the difference.

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


Mime
View raw message