Created
November 27, 2012 06:57
-
-
Save need4spd/4152822 to your computer and use it in GitHub Desktop.
Create Field instance in Lucene 4.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FieldType fieldType = new FieldType(); | |
fieldType.setIndexed(true); | |
fieldType.setStored(true); | |
fieldType.setTokenized(true); | |
fieldType.setIndexOptions(IndexOptions.DOCS_ONLY); | |
Field field = new Field("ids", ids[i], fieldType); //int type | |
IntField intField = new IntField("price", prices[i], fieldType); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
루씬 4.0에서 필드 instance생성