Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

solr cfsearch fails with multiple collections

New Here ,
Feb 26, 2014 Feb 26, 2014

I am upgrading to CF10/SOLR and finding that <cfsearch> fails when I specify multiple collections.  I am not doing a category search.  The search works fine for any single collection, but specifying multiple collections delimited by commas generates the failure...

Diagnostics: There was a problem while attempting to perform a search. Error executing query : read past EOF java.io.IOException: read past EOF at org.apache.lucene.store.MMapDirectory$MMapIndexInput.readByte(MMapDirectory.java:278) at org.apache.lucene.store.DataInput.readVInt(DataInput.java:105) at org.apache.lucene.index.TermBuffer.read(TermBuffer.java:64) at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:131) at org.apache.lucene.index.SegmentTermEnum.scanTo(SegmentTermEnum.java:166) at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:274) at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:210) at org.apache.lucene.index.SegmentTermDocs.seek(SegmentTermDocs.java:58) at org.apache.lucene.index.IndexReader.termDocs(IndexReader.java:1002) at org.apache.lucene.index.SegmentReader.termDocs(SegmentReader.java:488) at org.apache.lucene.index.DirectoryReader.termDocs(DirectoryReader.java:720) at org.apache.solr.search.SolrIndexReader.termDocs(SolrIndexReader.java:321) at org.apache.solr.search.SolrIndexSe...

The error occurred on line 16.

Line 16 is the criteria parameter which fails even when the Form.SearchPhrase variable is replaced with a literal eg "bulb."

<cfsearch      name="CommentSearch"

                      collection="forum_5000,forum_10000,forum_15000,forum_20000,forum_25000,forum_30000,forum_35000"

                      criteria="#Form.SearchPhrase#">


Any suggestions?

404
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources