Terrier Users :  Terrier Forum terrier.org
General discussion about using/developing applications using Terrier 
Problem with Phrase Queries
Posted by: lupacexi ()
Date: August 15, 2017 03:43PM

Hi all,

I would like to use Terrier 4.0 with phrase queries.
Following the website about the query language I have tried
"word1 word2"
However, I get the error attached below.
Am I using the query language wrong? Or do I need to have a special configuration in order to use phrase queries?
I am not an expert in IR and would really appreciate your help.

Thanks in advance,
Heike

________________________
The error message:

A problem occurred: java.lang.ClassCastException: org.terrier.structures.postings.bit.BasicIterablePosting cannot be cast to org.terrier.structures.postings.BlockPosting
java.lang.ClassCastException: org.terrier.structures.postings.bit.BasicIterablePosting cannot be cast to org.terrier.structures.postings.BlockPosting
at org.terrier.structures.postings.PhraseIterablePosting.<init>(PhraseIterablePosting.java:57)
at org.terrier.structures.postings.PhraseIterablePosting.createPhrasePostingList(PhraseIterablePosting.java:174)
at org.terrier.matching.dsms.PhraseScoreModifier.modifyScores(PhraseScoreModifier.java:168)
at org.terrier.matching.BaseMatching.finalise(BaseMatching.java:295)
at org.terrier.matching.daat.Full.match(Full.java:158)
at org.terrier.querying.Manager.runMatching(Manager.java:696)
at org.terrier.applications.batchquerying.TRECQuerying.processQuery(TRECQuerying.java:673)
at org.terrier.applications.batchquerying.TRECQuerying.processQueryAndWrite(TRECQuerying.java:593)
at org.terrier.applications.batchquerying.TRECQuerying.processQueries(TRECQuerying.java:783)
at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:415)
at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:588)
at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:245)

Options: Reply•Quote•Follow Topic•Report
Re: Problem with Phrase Queries new
Posted by: craigm ()
Date: October 28, 2015 09:49AM

You need to reindex using block indexing - see [terrier.org]

Craig

Options: Reply•Quote•Follow Topic•Report
Re: Problem with Phrase Queries new
Posted by: craigm ()
Date: November 11, 2015 11:55AM

I have improved the error message for Terrier 4.1.

Options: ReplyQuote
Re: Problem with Phrase Queries
Posted by: craigm ()
Date: August 16, 2017 11:24AM

Why did you copy & paste a previous thread into a new message?

Craig

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.