Is there any possibility to display Index.NO_NORMS values

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there any possibility to display Index.NO_NORMS values

Sebastin
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?.

 
 
Reply | Threaded
Open this post in threaded view
|

Re: Is there any possibility to display Index.NO_NORMS values

Chris Hostetter-3

: 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Searcher throws java.io.IOException: Bad file descriptor

MC Moisei-2
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Searcher throws java.io.IOException: Bad file descriptor

Doron Cohen
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 <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]