Hello,
I'm trying to use SpanRegexQuery as one of the clauses in my SpanQuery.
When I give it a regex like: "L[a-z]+ing" and do a rewrite on the final
query I get terms like "Labinger" and "Lackonsingh" along with the expected
terms "Labeling", "
Christopher M Collins wrote:
Hello,
I'm trying to use SpanRegexQuery as one of the clauses in my SpanQuery.
When I give it a regex like: "L[a-z]+ing" and do a rewrite on the final
query I get terms like "Labinger" and "Lackonsingh" along with the expected
ter
On Jul 31, 2008, at 10:06 PM, Christopher M Collins wrote:
I'm trying to use SpanRegexQuery as one of the clauses in my
SpanQuery.
When I give it a regex like: "L[a-z]+ing" and do a rewrite on the
final
query I get terms like "Labinger" and "Lackonsingh&quo
Hi,
While researching support for wildcards in a PhraseQuery, I see various
references to SpanRegexQuery which is not part of the 2.2 distribution. I
checked the Lucene site to see if it's some add-on jar, but couldn't find
anything so I'm wondering where can I obtain the .class/
!StringUtils.isEmpty(queryText)) {
if (queryText.indexOf("*") == 0 || queryText.indexOf("?") == 0)
return null;
if (queryText.indexOf(' ') != -1) {
SpanRegexQuery srq = new SpanRegexQuery(new Term(field,
queryText));
wrote:
>
>
> Hi,
>
> While researching support for wildcards in a PhraseQuery, I see various
> references to SpanRegexQuery which is not part of the 2.2 distribution. I
> checked the Lucene site to see if it's some add-on jar, but couldn't find
> anything so I
and I've never had to
> find any other jars from the Lucene site, they've all
> been in contrib
>
> Hope this helps
> Erick
>
> On 8/16/07, dontspamterry <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> While researching support f
pty(queryText)) {
if (queryText.indexOf("*") == 0 || queryText.indexOf
("?") == 0)
return null;
if (queryText.indexOf(' ') != -1) {
SpanRegexQuery srq = new SpanRegexQuery(new Term(field,
queryText));
It's
spanFirst(spanRegexQuery(monthly:day * of every * months), 10)
java.lang.NullPointerException
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:336)
at org.apache.lucene.index.MultiReader.norms(MultiReader.java:163)
On Sep 7, 2006, at 9:26 PM, Luke Tan wrote:
spanFirst(spanRegexQuery(monthly:day * of every * months), 10)
What analyzer did you use for your text? Again, that is not a valid
regular expression. But also, you're using a single long string of
several words within your SpanRegex
e:
On Sep 7, 2006, at 9:26 PM, Luke Tan wrote:
> spanFirst(spanRegexQuery(monthly:day * of every * months), 10)
What analyzer did you use for your text? Again, that is not a valid
regular expression. But also, you're using a single long string of
several words within your SpanRege
and I nest these SpanTermQuery into SpanNearQuery with slop > 1.
Thanks.
On 9/9/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
>
>
> On Sep 7, 2006, at 9:26 PM, Luke Tan wrote:
> > spanFirst(spanRegexQuery(monthly:day * of every * months), 10)
>
> What analyzer did y
anks.
On 9/9/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
On Sep 7, 2006, at 9:26 PM, Luke Tan wrote:
> spanFirst(spanRegexQuery(monthly:day * of every * months), 10)
What analyzer did you use for your text? Again, that is not a valid
regular expression. But also, you're us
Hi,
I was trying to use SpanRegexQuery in Lucene 3.03 to find terms that match
regular expression. The reason I use SpanRegexQuery instead of RegexQuery is
because I want to get all matches of the regular expression (if there are
multiple ones in a document), not just documents containing these
Hi,
I've downloaded lucene 2.3.0 and the jar lucene-core-2.3.0.jar does not
contain the SpanRegexQuery class.
Has this been deprecated?
Thanks,
Erica
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Bui
Hi,
Can this be use to search year 2000, 2001, 2002, ... 2009?
SpanFirstQuery snq = new SpanFirstQuery(new SpanRegexQuery(new Term("year",
"200?")), 1);
I need to use it to search something like
Who is born in 200?
Thanks
Erica - it has never been in the core JAR.It should be available
in the lucene-regex-2.3.0.jar
Erik
On Feb 12, 2008, at 10:01 AM, Mitchell, Erica wrote:
Hi,
I've downloaded lucene 2.3.0 and the jar lucene-core-2.3.0.jar does
not
contain the SpanRegexQuery class.
Has
To use SpanRegexQuery, you need to understand regular expressions.
The WildcardQuery syntax is _NOT_ the same as SpanRegexQuery syntax.
WildcardQuery supports a ? for single character match and * for
multiple characters. SpanRegexQuery use standard regular expression
syntax.
&quo
stQuery(new SpanRegexQuery(new
Term("year",
"200?")), 1);
I need to use it to search something like
Who is born in 200?
Thanks
ED]> wrote:
>
> Hi,
>
> Can this be use to search year 2000, 2001, 2002, ... 2009?
>
> SpanFirstQuery snq = new SpanFirstQuery(new SpanRegexQuery(new
> Term("year",
> "200?")), 1);
>
>
> I need to use it to search something like
>
> Who is born in 200?
>
> Thanks
>
>
Hi,
Oops. You just remind me about that. I conveniently think regex as simple as
* and ?
Yes, I understood java regex.
Thanks
Luke
On 9/9/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
To use SpanRegexQuery, you need to understand regular expressions.
The WildcardQuery syntax is _NOT_ th
k
>
> On 9/8/06, Luke Tan <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Can this be use to search year 2000, 2001, 2002, ... 2009?
> >
> > SpanFirstQuery snq = new SpanFirstQuery(new SpanRegexQuery(new
> > Term("year",
> > "200?")), 1);
> >
> >
> > I need to use it to search something like
> >
> > Who is born in 200?
> >
> > Thanks
> >
> >
>
>
22 matches
Mail list logo