You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Sebastin <se...@gmail.com> on 2007/06/24 09:12:34 UTC
Is there any possibility to display Index.NO_NORMS values
Hi all,
Is there any possibility to display Index values
(ie) when we want to search a field we use,
String test="9840836588"
Document doc=new Document();
doc.add(new
Field("test",test,Field.Store.NO,Field.Index.NO_NORMS);
indexWriter.addDocument(test);
is it possible to display test value as like stored value?.
--
View this message in context: http://www.nabble.com/Is-there-any-possibility-to-display-Index.NO_NORMS-values-tf3971495.html#a11272948
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Searcher throws java.io.IOException: Bad file descriptor
Posted by Doron Cohen <DO...@il.ibm.com>.
Is this repeatable?
Is it, possibly, over NFS (or other file sharing)?
What versions of Lucene, JDK, what OS?
Is it, possibly Lucene 2.0 on Linux with Java 1.5? (In this case see
http://256.com/gray/docs/misc/java_bad_file_descriptor_close_bug.shtml)
Btw, when starting a new discussion please do not reply to an existing one
but rather start a fresh email, otherwise your question is "hidden" in
another discussion thread and gets less attention.
Doron
MC Moisei <mc...@comcast.net> wrote on 24/06/2007 13:51:19:
> Any of you got something like this ? It looks that I have to reindex my
> entities.
>
> 2007-06-24 15:00:53,048 [TP-Processor1]: ERROR
> com.gsi.core.service.search.SearchServiceImpl.
> search(SearchServiceImpl.java:489)
> -
> Search error : Bad file descriptor on News
> java.io.IOException: Bad file descriptor
> at java.io.RandomAccessFile.readBytes(Native Method)
> at java.io.RandomAccessFile.read(RandomAccessFile.java:315)
> at
> org.apache.lucene.store.FSIndexInput.readInternal(FSDirectory.java:454)
> at
> org.apache.lucene.store.BufferedIndexInput.
> readBytes(BufferedIndexInput.java:45)
> at
> org.apache.lucene.index.CompoundFileReader$CSIndexInput.
> readInternal(CompoundFileReader.java:219)
> at
> org.apache.lucene.store.BufferedIndexInput.
> refill(BufferedIndexInput.java:64)
> at
> org.apache.lucene.store.BufferedIndexInput.
> readByte(BufferedIndexInput.java:33)
> at org.apache.lucene.store.IndexInput.readVLong(IndexInput.java:76)
> at
> org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:120)
> at
> org.apache.lucene.index.SegmentMergeInfo.next(SegmentMergeInfo.java:64)
> at org.apache.lucene.index.MultiTermEnum.next(MultiReader.java:285)
> at
> org.apache.lucene.search.FilteredTermEnum.next(FilteredTermEnum.java:66)
> at org.apache.lucene.search.FuzzyQuery.rewrite(FuzzyQuery.java:121)
> at org.apache.lucene.search.BooleanQuery.
> rewrite(BooleanQuery.java:372)
> at org.apache.lucene.search.BooleanQuery.
> rewrite(BooleanQuery.java:372)
> at
> org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:137)
> at org.apache.lucene.search.Query.weight(Query.java:93)
> at org.apache.lucene.search.Hits.<init>(Hits.java:41)
> at org.apache.lucene.search.Searcher.search(Searcher.java:44)
> at org.apache.lucene.search.Searcher.search(Searcher.java:36)
> at
> com.gsi.core.service.search.SearchServiceImpl.
> search(SearchServiceImpl.java:414)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Searcher throws java.io.IOException: Bad file descriptor
Posted by MC Moisei <mc...@comcast.net>.
Any of you got something like this ? It looks that I have to reindex my
entities.
2007-06-24 15:00:53,048 [TP-Processor1]: ERROR
com.gsi.core.service.search.SearchServiceImpl.search(SearchServiceImpl.java:489)
-
Search error : Bad file descriptor on News
java.io.IOException: Bad file descriptor
at java.io.RandomAccessFile.readBytes(Native Method)
at java.io.RandomAccessFile.read(RandomAccessFile.java:315)
at
org.apache.lucene.store.FSIndexInput.readInternal(FSDirectory.java:454)
at
org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:45)
at
org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal(CompoundFileReader.java:219)
at
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:64)
at
org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:33)
at org.apache.lucene.store.IndexInput.readVLong(IndexInput.java:76)
at
org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:120)
at
org.apache.lucene.index.SegmentMergeInfo.next(SegmentMergeInfo.java:64)
at org.apache.lucene.index.MultiTermEnum.next(MultiReader.java:285)
at
org.apache.lucene.search.FilteredTermEnum.next(FilteredTermEnum.java:66)
at org.apache.lucene.search.FuzzyQuery.rewrite(FuzzyQuery.java:121)
at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:372)
at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:372)
at
org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:137)
at org.apache.lucene.search.Query.weight(Query.java:93)
at org.apache.lucene.search.Hits.<init>(Hits.java:41)
at org.apache.lucene.search.Searcher.search(Searcher.java:44)
at org.apache.lucene.search.Searcher.search(Searcher.java:36)
at
com.gsi.core.service.search.SearchServiceImpl.search(SearchServiceImpl.java:414)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Is there any possibility to display Index.NO_NORMS values
Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Is there any possibility to display Index.NO_NORMS values
: Is there any possibility to display Index values
: doc.add(new
: Field("test",test,Field.Store.NO,Field.Index.NO_NORMS);
: indexWriter.addDocument(test);
:
:
: is it possible to display test value as like stored value?.
I'm confused by your question ... if you want to display the value, why
not store it? that can be controlled completely independently of the
Index.NO_NORMS option (by changing the Field.Store.NO option)
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org