Lucene - Query Parser Syntax

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2007 09:33 AM
Hello,
on the website http://lucene.apache.org/java/docs/queryparsersyntax.html is explained how to use the syntax.
But if I try to search fuzzy, like : tex~ or te?t, I get no results.
Any Idea what do I wrong or is it a bug?
Thanks a lot,
LeXx Borg
on the website http://lucene.apache.org/java/docs/queryparsersyntax.html is explained how to use the syntax.
But if I try to search fuzzy, like : tex~ or te?t, I get no results.
Any Idea what do I wrong or is it a bug?
Thanks a lot,
LeXx Borg
Labels:
- Labels:
-
Archive
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2007 10:16 AM
Hi
These should be fine, although not tested they rely on the lucene implementation with some minor extensions (which are common with Term queries).
There have been some issue in this area. Which version of the Repo are you using?
Does a search for the full token work ….
eg
WOOF:text works
WOOF:te?t fails
WOOF:tex~ fails
??
Cheers
Andy
These should be fine, although not tested they rely on the lucene implementation with some minor extensions (which are common with Term queries).
There have been some issue in this area. Which version of the Repo are you using?
Does a search for the full token work ….
eg
WOOF:text works
WOOF:te?t fails
WOOF:tex~ fails
??
Cheers
Andy

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2007 03:00 AM
Hi Andy,
I’m using Alfresco 2.0, how can I finde out the current version of the repository?
The search for full token works fine!
Thanks,
LeXx
I’m using Alfresco 2.0, how can I finde out the current version of the repository?
The search for full token works fine!
Thanks,
LeXx

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 08:22 AM
Hi
Prefix, fuzzy and wildcard queries were not working for attributes of type MLText. This is fixed in the HEAD/2.1 code stream.
Which attribute were you searching on? If it is not part of the standard model, what is its type as defined in the model?
BTW, the admin page has an info section that allows you to get the current version of the repo (schema version etc).
Cheers
Andy
Prefix, fuzzy and wildcard queries were not working for attributes of type MLText. This is fixed in the HEAD/2.1 code stream.
Which attribute were you searching on? If it is not part of the standard model, what is its type as defined in the model?
BTW, the admin page has an info section that allows you to get the current version of the repo (schema version etc).
Cheers
Andy

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 03:51 AM
Hi Andy,
I’m searching with simple search, and suppose it would be “cm:nameâ€.
Here is the information about repo:
Installed Schema: 38
Installed Version :2.0.0 (build-185)
Regards
LeXx
I’m searching with simple search, and suppose it would be “cm:nameâ€.
Here is the information about repo:
Installed Schema: 38
Installed Version :2.0.0 (build-185)
Regards
LeXx

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2007 11:48 AM
Hi
Apologies, I got the wrong end of the stick.
In the UI we have not exposed ? and ~ in the queries (although they are supported in the repository search API)
You can turn on debug to see the lucene query the client is running based on what is entered in the search box.
Please raise an enhancement request for this.
Andy
Apologies, I got the wrong end of the stick.
In the UI we have not exposed ? and ~ in the queries (although they are supported in the repository search API)
You can turn on debug to see the lucene query the client is running based on what is entered in the search box.
Please raise an enhancement request for this.
Andy

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2008 09:09 AM
Hi,
In our case, it goes like this:
TEXT:london works
TEXT:lon?on works
TEXT:londo~ returns nothing
I would highly appreciate any help to get the fuzzy query work. I tried to escape the tilde symbol, but it didn't help.
Repo versions:
Installed Schema: 89
Installed Version: 2.2.0 (159)
In our case, it goes like this:
TEXT:london works
TEXT:lon?on works
TEXT:londo~ returns nothing
I would highly appreciate any help to get the fuzzy query work. I tried to escape the tilde symbol, but it didn't help.
Repo versions:
Installed Schema: 89
Installed Version: 2.2.0 (159)
