Thank you very much.
So the best solution would be to implement the collector with a stop
function.
Do you happen to have an example for that?
Many thanks,
Liat
On 22 May 2011 13:19, Simon Willnauer simon.willna...@googlemail.comwrote:
On Sun, May 22, 2011 at 4:48 PM, Devon H. O'Dell
The simplest way would be a CollectorDelegate that wraps an existing
collector and checks a boolean before calling the delegates collect
method.
simon
On Mon, May 23, 2011 at 8:09 AM, liat oren oren.l...@gmail.com wrote:
Thank you very much.
So the best solution would be to implement the
Thanks a lot.
I tried to debug a long query and see when it gets to the collector.
I thought it will be better to catch the stop action in the search itself
and not the top doc collector as I would assume the search action will take
long time to finish and once we get to the top doc collector,
Not much luck so far :(
Just in case if anyone wants to earn some virtual dosh, I have added
some 50 bonus points to this question on StackOverflow:
http://stackoverflow.com/questions/6044061/lucene-query-parsing-behaviour-joining-query-parts-with-and
I also promise to post a solution here if
I have some bellow value in lucene index field
1#abcd
2#test wer
3# testing rty
I wright the query like bellow
+fieldname:1#
After query parser I see query string become
+fieldname:1
is there a way to search given string
Thanks Regards
Yogesh
(11/05/23 14:36), Weiwei Wang wrote:
1. source string: 7
2. WhitespaceTokenizer + EGramTokenFilter
3. FastVectorHighlighter,
4. debug info: subInfos=(777((8,11))777((5,8))777((2,5)))/3.0(2,102),
srcIndex is not correctly computed for the second loop of the outer for-loop
How does
Are you sure that it isn't working? If you use the same analyzer at
both indexing and query time you should end up with consistent
results.
Read up on exactly what your analyzer is doing by looking at the javadocs.
Google will find you lots of info on analysis, or get hold of a copy
of Lucene
Hmmm, somehow I missed this days ago
Anyway, the Lucene query parsing process isn't quite Boolean logic.
I encourage you to think in terms of required, optional, and
prohibited.
Both queries are equivalent, to see this try attaching debugQuery=on
to your URL and look at the parsed query in
Hi Erick,
I think answer to this question depends which hat you put on.
If you put search engine hat (or do similar things in, i.e. Google),
the results will be the same as what Lucene does at the moment. And
that's fair enough - getting more results in search engine world is
almost always
Hello,
My version: Lucene 3.1.0
I've had to customize the snippet for highlighting based on our
application requirements. Specifically, instead of the snippet being a
set of relevant fragments in the text, I need it to be the first
sentence where a match occurs, with a fixed size from the
Hi Diego,
Are you referring to that project--
http://code.google.com/p/semanticvectors/ ?
If yes , then documentation exists here
http://semanticvectors.googlecode.com/svn/javadoc/latest-stable/index.html .
Also I think this blog might interest you -- http://sujitpal.blogspot.com/ and
the project
Hi Yiannis,
Thank your for your reply.
Yes, I'm referring to project Semantic Vectors. Before sending the previous
email, I read the project API and noticed that its most classes don't
contain public methods, so that we cannot use the project programmatically
(only by command line).
I've seen
It's not my blog! :D
I used some of the ideas in that article
http://sujitpal.blogspot.com/2009/03/vector-space-classifier-using-lucene.html
in
order to perform classification with lucene for my tasks.
You can get full access to the source code of the project by typing in the
command line:
svn
Sorry, I thought the blog was yours! I will read the post and see if it
helps me. Thank you!
About the Semantic Vectors project, surely I know how to get its source
code. What I said is that I cannot use it only by API, because the Javadoc
does not show all methods. I really do not want to change
14 matches
Mail list logo