Thanks Erick, you cleared some of my confusions. But I still have a doubt.
As you can see in previous example code I am re-creating parallel multi
searcher for each search. (This is the actual scenario on production
servers)
The ParallelMultiSearcher constructor is taking different combination of
Ignore my previous, I thought you were constructing your own filters. What
you're doing should
be OK.
Here's the source of my confusion. Each of your indexes has Lucene document
IDs starting at
0. In your example, you have two docs/index. So, if you created a Filter via
lower-level
calls, it coul
Maybe you can use the [very new] feature committed under this issue:
https://issues.apache.org/jira/browse/LUCENE-2590
This lets you see which doc matched which terms from the query.
But, it hasn't be released yet (it'll be in 3.1 and 4.0).
Mike
On Mon, Nov 8, 2010 at 7:14 AM, starz10de w
You can use QueryParser.escape(s) if you want to keep the ? and
brackets and whatever. Or you could remove them.
One technique is to parse the query as supplied and catch the
ParseException, remove any special characters and resubmit the query.
See
http://lucene.apache.org/java/3_0_2/queryparser
How escape a question like (version 3.0.2):
"What is the role of Transforming growth factor-beta1 (TGF-beta1)
in cerebral amyloid angiopathy (CAA)?"
Exception in thread "main"
org.apache.lucene.queryParser.ParseException: Cannot parse 'What is
the role of Transforming growth factor-beta1 (TG
Hi.
I'm trying to use solrj to add documents in solr with use digest authentication
but it displays the following error:
org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.
ProtocolException: Unbuffered entity enclosing request can not be repeated.
at org.ap
Thanks for testing.
You should open an issue and attach the self-containing test to track this.
>From what you describe, it seems to be a problem in BooleanQuery (because it
only happens in BQ rewrite modes, not in Filter rewrites). For this case,
the query uses finally BooleanQuery rewrite in au
This is roughly where I decided to ask for help as well. Ian's test case
removes any question about my indexes being corrupted and reproduces the issue
very cleanly. I will try to continue digging deeper but nothing jumped out at
me the first several times I've stepped through this but may try
I think it might be an edge case around TermRangeQuery and
MultiTermQuery and rewrite methods. It only seems to happen when part
of the query is a TermRangeQuery and I can make the problem go away
with a call to setRewriteMethod(MultiTermQuery.xxx).
Where xxx is
CONSTANT_SCORE_BOOLEAN_QUERY_REWR
It occurs in David's index and in my much simplifed test/demo index.
There is nothing special in mine so I'd guess the problem isn't really
index or data related, but certainly can't vouch for that.
--
Ian.
On Mon, Nov 8, 2010 at 12:05 PM, Uwe Schindler wrote:
> That's extremely strange. If th
Extract the high frequent terms in the search result set.
I need to know how to extract the most frequent terms in the search result
set after submitting the query.
Here the class where you can use to extract the most frequent terms from the
index:
int j=0;
int numTerms=5;
This does seem extremely odd. David sent me a copy of his index and
I've played around with it and also written a self-contained RAM index
program, below, that shows the same problem, namely that if the second
index has 1000+ docs the one and only doc in the first index is
incorrectly matched if t
Nevermind, and sorry for the double post.
The compiled file wasn't going at the right place, so no change was taken into
account.
Both your solutions seem to work fine.
Thanks a lot!
Alain
- Mail original -
De: "Alain Camus"
À: java-user@lucene.apache.org
Envoyé: Lundi 8 Novembre 2010
Hello,
Thanks for your replies. I'm sorry but I couldn't get one of David's or Uwe's
solution to work.
For the QueryParser, I tried :
QueryParser parser = new QueryParser("denominator", new StandardAnalyzer());
Query bq = new BooleanQuery();
try {
bq = parser.parse("+denominator:([100
Hello,
Thanks for your replies. I'm sorry but I couldn't get one of David's or Uwe's
solution to work.
For the QueryParser, I tried :
QueryParser parser = new QueryParser("denominator", new StandardAnalyzer());
Query bq = new BooleanQuery();
try {
bq = parser.parse("+denominator:([100
Hi Erick, Thanks for the reply.
Your answer have puzzled me more because what I am able to view is not what
you say or I am not able to grasp your meaning.
I have written a small program which is exactly what my original question
was. Here I am creating a CachingWrapperFilter on one index and reu
16 matches
Mail list logo