com.liferay.portal.search.lucene
Class LuceneFields
java.lang.Object
com.liferay.portal.search.lucene.LuceneFields
public class LuceneFields
- extends Object
Method Summary |
static org.apache.lucene.document.Field |
getDate(String field)
|
static org.apache.lucene.document.Field |
getDate(String field,
Date date)
|
static org.apache.lucene.document.Field |
getFile(String field,
byte[] bytes,
String fileExt)
|
static org.apache.lucene.document.Field |
getFile(String field,
File file,
String fileExt)
|
static org.apache.lucene.document.Field |
getFile(String field,
InputStream is,
String fileExt)
|
static org.apache.lucene.document.Field |
getKeyword(String field,
double keyword)
|
static org.apache.lucene.document.Field |
getKeyword(String field,
long keyword)
|
static org.apache.lucene.document.Field |
getKeyword(String field,
Long keyword)
|
static org.apache.lucene.document.Field |
getKeyword(String field,
String keyword)
|
static org.apache.lucene.document.NumericField |
getNumber(String field,
String number,
Class<? extends Number> clazz)
|
static org.apache.lucene.document.Field |
getText(String field,
String text)
|
static org.apache.lucene.document.Field |
getText(String field,
StringBuilder sb)
|
static String |
getUID(String portletId,
long field1)
|
static String |
getUID(String portletId,
Long field1)
|
static String |
getUID(String portletId,
long field1,
String field2)
|
static String |
getUID(String portletId,
Long field1,
String field2)
|
static String |
getUID(String portletId,
String field1)
|
static String |
getUID(String portletId,
String field1,
String field2)
|
static String |
getUID(String portletId,
String field1,
String field2,
String field3)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneFields
public LuceneFields()
getDate
public static org.apache.lucene.document.Field getDate(String field)
getDate
public static org.apache.lucene.document.Field getDate(String field,
Date date)
getFile
public static org.apache.lucene.document.Field getFile(String field,
byte[] bytes,
String fileExt)
getFile
public static org.apache.lucene.document.Field getFile(String field,
File file,
String fileExt)
throws IOException
- Throws:
IOException
getFile
public static org.apache.lucene.document.Field getFile(String field,
InputStream is,
String fileExt)
getKeyword
public static org.apache.lucene.document.Field getKeyword(String field,
double keyword)
getKeyword
public static org.apache.lucene.document.Field getKeyword(String field,
long keyword)
getKeyword
public static org.apache.lucene.document.Field getKeyword(String field,
Long keyword)
getKeyword
public static org.apache.lucene.document.Field getKeyword(String field,
String keyword)
getNumber
public static org.apache.lucene.document.NumericField getNumber(String field,
String number,
Class<? extends Number> clazz)
getText
public static org.apache.lucene.document.Field getText(String field,
String text)
getText
public static org.apache.lucene.document.Field getText(String field,
StringBuilder sb)
getUID
public static String getUID(String portletId,
long field1)
getUID
public static String getUID(String portletId,
long field1,
String field2)
getUID
public static String getUID(String portletId,
Long field1)
getUID
public static String getUID(String portletId,
Long field1,
String field2)
getUID
public static String getUID(String portletId,
String field1)
getUID
public static String getUID(String portletId,
String field1,
String field2)
getUID
public static String getUID(String portletId,
String field1,
String field2,
String field3)