phrase = PhraseIterablePosting.createPhrasePostingList(ps, invIndex, false);
phrase = PhraseIterablePosting.createPhrasePostingList(ps, invIndex, false);
@SuppressWarnings("unchecked") @Test public void testOnePhraseOneDocument() throws Exception { ApplicationSetup.setProperty("termpipelines", ""); Index index = IndexTestUtils.makeIndexBlocks( new String[]{"doc1"}, new String[]{"dramatis personae"}); IterablePosting ip = PhraseIterablePosting.createPhrasePostingList( new String[]{"dramatis", "personae"}, index.getLexicon(), (PostingIndex<Pointer>) index.getInvertedIndex(), true); assertNotNull(ip); assertEquals(0, ip.next()); assertEquals(1, ip.getFrequency()); assertEquals(IterablePosting.EOL, ip.next()); }
"another term dramatis PeRsOnAe term" //5 }); IterablePosting ip = PhraseIterablePosting.createPhrasePostingList( new String[]{"dramatis", "personae"}, index.getLexicon(), ip = PhraseIterablePosting.createPhrasePostingList( new String[]{"dramatis", "personae"}, index.getLexicon(), ip = PhraseIterablePosting.createPhrasePostingList( new String[]{"dramatis", "term"}, index.getLexicon(), ip = PhraseIterablePosting.createPhrasePostingList( new String[]{"dramatis", "dramatis"}, index.getLexicon(),