Thank you, Daniel. Once I get an environment suitable enough I will
certainly give this a whirl.
-- Robert
On Wed, 12 Oct 2005, Daniel Naber wrote:
On Mittwoch 12 Oktober 2005 17:18, Robert Watkins wrote:
Does that sound reasonable -- and scalable -- to you?
I don't think you need to itera
On Mittwoch 12 Oktober 2005 17:18, Robert Watkins wrote:
> Does that sound reasonable -- and scalable -- to you?
I don't think you need to iterate at all, you can easily expand the terms
of a query:
QueryParser qp = new QueryParser("f", new StandardAnalyzer());
Query q = qp.parse("e*");
Having now looked at the test cases in SVN (specifically,
TestMultiPhraseQuery.java), I cannot see any tests using simple
wildcards, only terms ending with *, and thus suitable for a
PrefixQuery. The examples do reveal how it could be done for wildcards,
but my concern turns to scalability.
I am
On Mittwoch 12 Oktober 2005 00:15, Robert Watkins wrote:
> Wonderful! But what about wildcards? I realised after I had sent the
> last message that my pattern should have been written:
Have a look at the test cases: you need to expand the terms yourself, i.e.
it doesn't matter if there's a prefi
Wonderful! But what about wildcards? I realised after I had sent the
last message that my pattern should have been written:
( term | term as prefix | wildcard term )+
-- Robert
On Tue, 11 Oct 2005, Daniel Naber wrote:
On Dienstag 11 Oktober 2005 22:53, Robert Watkins wrote:
I was under th
On Dienstag 11 Oktober 2005 22:53, Robert Watkins wrote:
> I was under the impression that PhrasePrefixQuery only worked in the
> special case of the term that would otherwise be used in a PrefixQuery
> coming at the end of the sequence of terms, as in:
No, the test cases show that the prefix ter
I was under the impression that PhrasePrefixQuery only worked in the
special case of the term that would otherwise be used in a PrefixQuery
coming at the end of the sequence of terms, as in:
( term )+ ( term as prefix )
but not where either a WildcardQuery or a PrefixQuery occurs anywhere
in t
On Dienstag 11 Oktober 2005 15:32, Robert Watkins wrote:
> The only idea that comes to mind is to try to combine a PhraseQuery and
> a PrefixQuery
Yes, PhrasePrefixQuery already supports that.
Regards
Daniel
--
http://www.danielnaber.de
---