Re: Single filter instance with different searchers

2010-11-08 Thread Samarendra Pratap
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

Re: Single filter instance with different searchers

2010-11-08 Thread Erick Erickson
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

Re: high frequent terms in the search result set

2010-11-08 Thread Michael McCandless
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

Re: ParseException (How escape a question?)

2010-11-08 Thread Ian Lea
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

ParseException (How escape a question?)

2010-11-08 Thread Celso Fontes
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

solrj digest authentication

2010-11-08 Thread Juan Felix
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

RE: Antw.: Search returning documents matching a NOT range

2010-11-08 Thread Uwe Schindler
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

RE: Antw.: Search returning documents matching a NOT range

2010-11-08 Thread David Fertig
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

Re: Antw.: Search returning documents matching a NOT range

2010-11-08 Thread Ian Lea
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

Re: Antw.: Search returning documents matching a NOT range

2010-11-08 Thread Ian Lea
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

high frequent terms in the search result set

2010-11-08 Thread starz10de
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;

Re: Search returning documents matching a NOT range

2010-11-08 Thread Ian Lea
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

Re: RangeQuery with multiple ranges ?

2010-11-08 Thread Alain Camus
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

Re: RangeQuery with multiple ranges ?

2010-11-08 Thread Alain Camus
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

Re: RangeQuery with multiple ranges ?

2010-11-08 Thread Alain Camus
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

Re: Single filter instance with different searchers

2010-11-08 Thread Samarendra Pratap
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