You're welcome; thanks for letting us know
-Mike
On 03/04/2015 01:21 PM, David Villarejo wrote:
Hi Mike,
Your solution work! I've been trying it with PhraseQuery and It works
pretty good.
Thank you so much.
David.
2015-03-03 23:00 GMT+01:00 Michael Sokolov :
I believe you can accomplish w
Hi Mike,
Your solution work! I've been trying it with PhraseQuery and It works
pretty good.
Thank you so much.
David.
2015-03-03 23:00 GMT+01:00 Michael Sokolov :
> I believe you can accomplish what you are talking about using PhraseQuery,
> say: note that it has
>
> public void add(Term term,
I believe you can accomplish what you are talking about using
PhraseQuery, say: note that it has
public void add(Term term, int position)
which does enable searching for multiple terms at the same position
and you should be able to encode different kinds of attributes using
text tricks like I
What you propose is good if you want to index only the pos of a token. But
I want to index some extra info, such as "lemma" of a token, phonetic
encoding, etc. Sorry, I was not too general in my previous post.
Imagine you want to ask this:
an adj whose lemma is "quick" followed by "brown" followed
What if you indexed every word with two synonyms: the plain unadorned
word and a token formed by concatenating the pos and the word with some
unusual separator character?
For example, "the quick brown fox" would be:
{ the | article:the } {quick | adj:quick } { brown | adj:brown } { fox |
noun
After many google searchs I decided to post my problem here hoping that
someone help me. What I want to achieve is to perform queries as follows
(Don't worry about the query format):
q1: (adjective) "jumps" (preposition) // any adj followed by "jumps"
followed by any prep.
q2: (adjective:brown) "j