Re: Question on ElisionFilter with d'

2012-07-25 Thread Jack Krupansky
The filter should work (remove the letter and apostrophe). Could you supply an exact code fragment that shows the literal term, the code invoking the filter, and the exact literal output? And, which release of Lucene? -- Jack Krupansky -Original Message- From: yamo93 Sent: Wednesda

Re: Usage of NoMergePolicy and its potential implications

2012-07-25 Thread Snehal Chennuru
Thanks Simon and Trejkaz! You are right, we used this approach exactly for the reasons you mentioned above. As we have to support old lucene indices, we are not sure what approach to take. -- View this message in context: http://lucene.472066.n3.nabble.com/Usage-of-NoMergePolicy-and-its-potent

Re: Usage of NoMergePolicy and its potential implications

2012-07-25 Thread Trejkaz
On Thu, Jul 26, 2012 at 5:38 AM, Simon Willnauer wrote: > you really shouldn't do that! If you use lucene as a Primary key > generator why don't you build your own on top. Just add one layer that > accepts the document and returns the PID and internally put it in an > ID field. Using no merge poli

Re: Usage of NoMergePolicy and its potential implications

2012-07-25 Thread Simon Willnauer
On Mon, Jul 23, 2012 at 7:00 PM, snehal.chennuru wrote: > 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. you really shouldn't do that! If you use lucene as a Primary key generator why don'

[Lucene-3.6] OutOfMemory for SpanNearQuery with many unique terms in index

2012-07-25 Thread Ivan Hrytsyuk
Environment: - Lucene-3.6 with Solr-3.6 - JBoss-5.1.0 - jdk1.6.0_26_x32 - 1500Mb for heap Our Requirements: We need to implement next feature: 1. Each document has multiple offer windows (startDate and endDate paired) which are not consecutive 2. When we query for documents we

Re: Question on ElisionFilter with d'

2012-07-25 Thread Ian Lea
Ah, OK. I thought you were saying it was removing d' when you thought it shouldn't. Sounds like a bug to me but I don't know enough about it to express a strong opinion. -- Ian. On Wed, Jul 25, 2012 at 3:56 PM, yamo93 wrote: > Thanks for replying, > > The problem is that the filter don't rem

Re: Question on ElisionFilter with d'

2012-07-25 Thread yamo93
Thanks for replying, The problem is that the filter don't remove d' (and c' too). Shall i open an issue on jira ? On 07/25/2012 04:36 PM, Ian Lea wrote: I bet it's expected. From http://en.wikipedia.org/wiki/Elision_(French) In written French, elision (both phonetic and orthographic) is oblig

Re: Question on ElisionFilter with d'

2012-07-25 Thread Ian Lea
I bet it's expected. From http://en.wikipedia.org/wiki/Elision_(French) In written French, elision (both phonetic and orthographic) is obligatory for the following words: ... the preposition de ... Le père d'Albert vient d'arriver. So surely the removal of d' is correct. -- Ian. On Wed,

Question on ElisionFilter with d'

2012-07-25 Thread yamo93
Hello, I'm using ElisionFilter to index french text. The filter works but ignore the d letter followed by an apostrophe (example: d'une). Is-it an expected behaviour or is it an issue ? Regards, Yann. - To unsubscribe, e-mai

ToParentBlockJoinQuery - Faceting on Parent and Child Documents

2012-07-25 Thread Jayendra Patil
Thanks Mike for the wonderful work on ToParentBlockJoinQuery. We had a use case for Relational data search and are working with ToParentBlockJoinQuery which works perfectly as mentioned @ http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html However, I couldn't find any ex

Re: how can i search multiple words in line and paragraph?

2012-07-25 Thread Ian Lea
Look into spans and line, or sentence, delimiters and tokens, and position increment gaps. Google will help you. You can do a whole lot of stuff with spans - see http://www.lucidimagination.com/blog/2009/07/18/the-spanquery/ for a good intro. Lucene 2.9 is ancient. You should upgrade. -- Ian.

Re: how to put multiplue proximity search in lucene??

2012-07-25 Thread Ian Lea
If you are using QueryParser use "fear dark"~2 "tight free"~3. See also PhraseQuery.setSlop(n). You could also look at the Span queries e.g. SpanNearQuery. -- Ian. On Wed, Jul 25, 2012 at 6:13 AM, neerajshah84 wrote: > how can i put multiplue proximity search in lucene?? > example :- > > i