cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene - Query Parser Syntax

lexxborg
Champ in-the-making
Champ in-the-making
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
6 REPLIES 6

andy
Champ on-the-rise
Champ on-the-rise
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

lexxborg
Champ in-the-making
Champ in-the-making
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

andy
Champ on-the-rise
Champ on-the-rise
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

lexxborg
Champ in-the-making
Champ in-the-making
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

andy
Champ on-the-rise
Champ on-the-rise
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

thjarvin
Champ in-the-making
Champ in-the-making
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)