So "content" is a String variable in your program holding a multi-line
value, is it? I'd double check exactly what that is holding before
you store it in the index.
--
Ian.
On Mon, Jul 16, 2012 at 4:56 AM, sam wrote:
> I had done that,I used the docment.add(new
> field("content",content,field
I had done that,I used the docment.add(new
field("content",content,field.store.yes,filed.analyzer.yes));i have used
while loop to set the content like while((str=reader.readline)!=null) ,But
when i used document.get("content"),i can only get the first LIne.
--
View this message in context:
http:/
You can only show that is stored (Field.Store.YES). Only then can
you use document.get(...) and get something to display
Best
Erick
On Thu, Jul 12, 2012 at 2:55 AM, sam wrote:
> it's take a new problem,what even I seaching,I can only get the first line
> data,if the data can be seach.and ,when i
it's take a new problem,what even I seaching,I can only get the first line
data,if the data can be seach.and ,when i find my content in luke.i can find
all the data in the content,but i just can not show it.
--
View this message in context:
http://lucene.472066.n3.nabble.com/about-some-date-store
Listen to Uwe.
Keeping your date/time in milliseconds is the best solution.
You don't care about how the user likes his data DD.MM. (Europe)
of MM.DD.(US), about timezones, daylight saving changes, leap
seconds, or any other complications.
Your dates are simple long numbers, you can easy
Hi,
Use NumericField and NumericRangeQuery to query. For sorting use the
corresponding datatype. In the numeric field you would parse the date to a
number (e.g. milliseconds since epoch) and index it using NumericField. To
print them, use SimpleDateFormat or whatever to convert the numeric value
b