lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tate Jones <t...@pisoftware.com>
Subject Re: searching with a '/'
Date Thu, 21 Mar 2002 01:11:52 GMT
Gee KMail is crazy at times

On Thu, 21 Mar 2002 11:08, Tate Jones wrote:
> If i attempt a search that contains a forward slash '/' the following
> exception occurs

 <testcase name="testFullTextStringPool" time="3.59">
    <error 
type="java.lang.NullPointerException">java.lang.NullPointerException
  at org.apache.lucene.index.SegmentTermPositions.seek(Unknown Source)
  at org.apache.lucene.index.SegmentTermDocs.seek(Unknown Source)
  at org.apache.lucene.index.SegmentsTermDocs.termDocs(Unknown Source)
  at org.apache.lucene.index.SegmentsTermDocs.next(Unknown Source)
  at org.apache.lucene.search.PhrasePositions.next(Unknown Source)
  at org.apache.lucene.search.PhrasePositions.&lt;init&gt;(Unknown Source)
  at org.apache.lucene.search.PhraseScorer.&lt;init&gt;(Unknown Source)
  at org.apache.lucene.search.ExactPhraseScorer.&lt;init&gt;(Unknown Source)
  at org.apache.lucene.search.PhraseQuery.scorer(Unknown Source)
  at org.apache.lucene.search.BooleanQuery.scorer(Unknown Source)
  at org.apache.lucene.search.Query.scorer(Unknown Source)
  at org.apache.lucene.search.IndexSearcher.search(Unknown Source)
  at org.apache.lucene.search.Hits.getMoreDocs(Unknown Source)
  at org.apache.lucene.search.Hits.&lt;init&gt;(Unknown Source)
  at org.apache.lucene.search.Searcher.search(Unknown Source)
  at org.apache.lucene.search.Searcher.search(Unknown Source)

Any ideas on how to escape the forward slash.

The string added was successful
"this/is/a/test/for/slashes"

I then tried to search for 
"this/is/a/test/for/slashes"

then the exception occurred.

Thanks
Tate




--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message