Re: [Lucene.Net] VOTE: .NET 2.0 Framework Support After Apache Lucene.Net 2.9.4

2011-05-11 Thread Vincent DARON

Do it, if you need it. +1



Le 10/05/11 20:02, Lombard, Scott a écrit :

+1


-Original Message-
From: Troy Howard [mailto:thowar...@gmail.com]
Sent: Monday, May 09, 2011 4:05 PM
To: lucene-net-dev@lucene.apache.org; lucene-net-u...@lucene.apache.org
Subject: [Lucene.Net] VOTE: .NET 2.0 Framework Support After Apache
Lucene.Net 2.9.4

All,

Please cast your votes regarding the topic of .Net Framework support.

The question on the table is:

Should Apache Lucene.Net 2.9.4 be the last release which supports the
.Net 2.0 Framework?

Some options are:

[+1] - Yes, move forward to the latest .Net Framework version, and drop
support for 2.0 completely. New features and performance are more
important
than backwards compatibility.
[0] - Yes, focus on the latest .Net Framework, but also include patches
and/or preprocessor directives and conditional compilation blocks to
include
support for 2.0 when needed. New features, performance, and backwards
compatibility are all equally important and it's worth the additional
complexity and coding work to meet all of those goals.
[-1] No, .Net Framework 2.0 should remain our target platform. Backwards
compatibility is more important than new features and performance.


This vote is not limited to the Apache Lucene.Net IPMC. All
users/contributors/committers/mailing list lurkers are welcome to cast
their
votes with an equal weight. This has been cross posted to both the dev and
user mailing lists.

Thanks,
Troy


This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer.  Thank you, King Industries, Inc.



Re: Cannot Escape Special charectors Search with Lucene.Net 2.0

2010-12-17 Thread Vincent DARON

Hi Abhilash,

Try with: Test\\Test

From Documentation 
(http://lucene.apache.org/java/2_3_2/queryparsersyntax.html):


==

Lucene supports escaping special characters that are part of the query 
syntax. The current list special characters are


+ -  || ! ( ) { } [ ] ^  ~ * ? : \

To escape these character use the \ before the character. For example to 
search for (1+1):2 use the query:


\(1\+1\)\:2

==

Regards,

Vincent DARON
ASK


Le 17/12/10 12:29, abhilash ramachandran a écrit :

Hi,
My Name is Abhilash, working as .Net developer/support.
I have came acroos an issue with search option in our application which uses
Lucene.Net 2.0 version.
The scenario is if I try search a text TestTest (it is actually
TestTest.doc, which is trying to search), it returns 0 hits. While
debugging I could see that the line which wrote to Parse the query is giving
the problem,
Here is the error line code:

Query q=null;

q = new global::Lucene.Net.QueryParsers.QueryParser(content, new
StandardAnalyzer()).Parse(query);
  The variable query at above point contains as this:
(title:(TestTest) shorttitle:(TestTest) content:(TestTest)
keywords:(TestTest) description:(TestTest) )
and q will get as this:
title:test test shorttitle:test test content:test test keywords:test
test description:test test

And hence the hit length will be 0 at

IndexSearcher searcher = new IndexSearcher(indexPath);

Hits hits = searcher.Search(q);
I tried adding\ before, tried escape, tried enclosing the text in a 
but all result the same outcome.
Could anyone please hlep me with any fix to it?
If require I can post the full code here.
Hope to hear from Lucene.Net.
Many thanks
Abhilash



--
Vincent DARON
ASK



[Fwd: TermEnum usage]

2010-07-22 Thread Vincent DARON
Without any answers, I'm reposting once. Do I have to post bug report ?

Let me know

Thanks a lot

Vincent DARON
ASK
---BeginMessage---
Hi all

I'm using Lucene.NET 2.9.2.2 from SVN.

I try to iterate terms of a field in my index, todo so, i'm using
IndexReader.Terms(f) that return a TermEnum.

The classic usage of iterator is the folowing pattern

TermNum enu = reader.Terms(new Term(myfield));
while(enu.Next())
{
ProcessTerm(enu.Term());
}

But it seems that the TermEnum is already on the first item BEFORE the
first call to Next. The previous code will therefore always skip the
first Term.

Bug ?

Thanks

Vincent DARON
ASK
---End Message---


TermEnum usage

2010-07-14 Thread Vincent DARON
Hi all

I'm using Lucene.NET 2.9.2.2 from SVN.

I try to iterate terms of a field in my index, todo so, i'm using
IndexReader.Terms(f) that return a TermEnum.

The classic usage of iterator is the folowing pattern

TermNum enu = reader.Terms(new Term(myfield));
while(enu.Next())
{
ProcessTerm(enu.Term());
}

But it seems that the TermEnum is already on the first item BEFORE the
first call to Next. The previous code will therefore always skip the
first Term.

Bug ?

Thanks

Vincent DARON
ASK