Re: QueryParser and BooleanQuery

2012-07-23 Thread Trejkaz
On Mon, Jul 23, 2012 at 10:16 PM, Deepak Shakya wrote: > Hey Jack, > > Can you let me know how should I do that? I am using the Lucene 3.6 version > and I dont see any parse() method for StandardAnalyzer. In your case, presumably at indexing time you should be using a PerFieldAnalyzerWrapper with

Re: Usage of NoMergePolicy and its potential implications

2012-07-23 Thread snehal.chennuru
Thanks for the heads up Ian. I know it is highly discouraged. But, like I said, it is a legacy application and it is very hard to go back and re-do it. -- View this message in context: http://lucene.472066.n3.nabble.com/Usage-of-NoMergePolicy-and-its-potential-implications-tp3996630p3996784.h

FixedStraightBytesImpl - flushing

2012-07-23 Thread Simon McDuff
Hello, (LUCENE 4.0.0-ALPHA) We are using the DocValues features (very nice). We are using FixedBytesRef. In that specific case, we were wondering why does it flush at the end (when we commit) ? Would be more efficient (for memory) to write its buffer as it goes ? Thank you Simon

Re: Usage of NoMergePolicy and its potential implications

2012-07-23 Thread Ian Lea
I can't answer your questions, but use of lucene's document ids as persistent ids is strongly discouraged, particularly in version 4.x where I think it just won't work at all. There was a related thread a couple of weeks ago. See Uwe's message at http://mail-archives.apache.org/mod_mbox/lucene-ja

Re: using phrase query with wildcard

2012-07-23 Thread Ahmet Arslan
> I'm trying to create a phrase query with wildcard, from the > forums it seems that the solution is not trivial. > I'm trying to create the following queries: "this is a > phrase*"  OR  "*This is a phrase" and > Get hits on every possibility where the * resides. > What is the best way to achieve t

Re: QueryParser and BooleanQuery

2012-07-23 Thread Ian Lea
QueryParser returns a query. Just add that to the BooleanQuery. QueryParser qp = ...; BooleanQuery bq = new BooleanQuery(); Query parsedq = qp.parse("...); bq.add(parsedq, ...); -- Ian. On Mon, Jul 23, 2012 at 1:16 PM, Deepak Shakya wrote: > Hey Jack, > > Can you let me know how should I do

Re: QueryParser and BooleanQuery

2012-07-23 Thread Deepak Shakya
Hey Jack, Can you let me know how should I do that? I am using the Lucene 3.6 version and I dont see any parse() method for StandardAnalyzer. On Mon, Jul 23, 2012 at 8:47 AM, Jack Krupansky wrote: > Yes, I failed to notice that the removal of the slash was yet another > instance of the analyzer

Re: Matching on "owned" docs -- filter or query? Or sort?

2012-07-23 Thread Erick Erickson
Well, if you only indexed a single document per title with multiple owner IDs in that document, you wouldn't have multiple documents come back for a particular title. And the grouping code (http://wiki.apache.org/solr/FieldCollapsing is the Solr-level, but I assume it's all realized in the Lucene