Re: Example phrase query with lucene version 4

2013-03-12 Thread Arlei Ferreira Farnetani Junior
In this case you are not using more search PhraseQuery the type that existed in previous versions ... I would like to use this PhraseQuery by having the possibility of bidding I use the property and thus enable setSlop have more content between words. So it is not recommended to use more Phraseque

Re: Example phrase query with lucene version 4

2013-03-12 Thread Ian Lea
QueryParser qp = new QueryParser(Version.whatever, "somefield", new WhateverAnalyzer()); Query q = qp.parse("\"The mouse gnawed the clothes of the king of Rome\""); and q should be a PhraseQuery if I've got the quoting right. Some of those words might be stop words which might cause you problems