Hi,
We are creating an index containing data from two databases. What we are trying
to achieve is to make our search locate and return information no matter where
the data came from. (BTW, we are using Compass, if it matters any)
My problem is that I am not sure how to create such an index.
Do I
I am using Compass which uses Lucene 2.4.1.
We are trying to implement "find as you type" searching. So for example, if I
have documents containing the following:
Newfoundland
New Mexico
New York
New Yorkshire
If a user types "New" all four documents are returned. When the user adds a
space, onl
Hi,
I am trying to implement a "progressive search" with Lucene. What I mean is that
something like what Google does: you type a few letters and google searches for
matches as you type. The more letters you enter, the more precise your search
becomes.
I decided to use a prefix query because other
Philip,
Philip Puffinburger tlcdelivers.com> writes:
> So if we had a Book like with a title like 'The Brown Dog', we would end up
with fields in the document like:
>
> Used for the normal full text searching
>
> title : the brown dog
>
> Used for the prefix searching
>
> titlekeyword : the
Ahmet,
Ahmet Arslan yahoo.com> writes:
> So order of search terms are important to you. Since you are constructing your
queries programmatically,
> you can use SpanQuery family.
>
Yes, order is important.
> If you substitute PrefixQuery with SpanRegexQuery, and TermQuery with
SpanTermQuery. An
Philip Puffinburger tlcdelivers.com> writes:
> We only do the PrefixQuery which is against the keyword field ("brown dog"
> is a single term as is "the brown dog"). We don't have a BooleanQuery
> like you do, but I don't see why it wouldn't work.
>
Ahh. OK, so you probably aren't using a whi
Cameron,
Cameron Leach gmail.com> writes:
> I think what you want is for something like this:
>
> "the brown dog" ->
> the brown dog
> brown dog
> dog
>
> If you write your custom analyzer accordingly, to trim terms from the
> beginning and then use the NGramTokenFilter, you should get your rea