On Mon, Aug 8, 2011 at 10:00 AM, Trejkaz wrote:
>
> within(5, 'my', and('cat', 'dog')) -> within(5, 'my', within(10, 'cat',
> 'dog') )
To extend my example and maybe make it a bit more hellish, take this one:
within(2, A, and(B, or(C, and(D, E
After rewriting both and() to SpanNearQ
On Mon, Aug 8, 2011 at 8:58 AM, Michael Sokolov wrote:
> Can you do something approximately equivalent like:
>
> within(5, 'my', and('cat', 'dog')) ->
> within(5, 'my', within(5, 'cat', 'dog') )
>
> Might not be exactly the same in terms of distances (eg "cat x x x my x x x
> dog") might match the
On 8/4/2011 9:06 PM, Trejkaz wrote:...
For AND (and for any "default boolean" queries which aren't equivalent
to OR) queries, I have problems. For instance, you can't do this:
within(5, 'my', and('cat', 'dog')) -> and( within(5, 'my', 'cat'),
within(5, 'my', 'dog') )
The problem is that
Depending on what you wanted to do with the Javabean (I assume you want
to make some or all its fields searchable since you are writing to
Lucene), you could use reflection to break it up into field name value
pairs and write them out to the IndexWriter using something like this:
Document d = new
Hi Everybody.
How can I configure Lucene to use different similarity measures (e.g. Cosine
similarity, or a user-defined similarity measure) during search?
Thanks in advance.