cancel
Showing results for 
Search instead for 
Did you mean: 

Strange behaviour with Lucene query

mrsaqib
Champ in-the-making
Champ in-the-making
Hi All,

I am working on one of the project in alfresco 3.1
I've attached some aspects with the upload Pdfs, everything was working fine unless i encountered a strange issue.,

I've written a webscript which search based on the aspects (for ex the aspect is FirstName)

If i save the value A in the FirstName, and search through webscript, the lucene returns no result. and if i save any other value except A, or even AA, the lucene returns the pdf.

Search fails on : @joom\:FirstName:'A'  when FirstName is saved as A

Search passes on : @joom\:FirstName:'AA'  when FirstName is saved as AA
7 REPLIES 7

jpotts
World-Class Innovator
World-Class Innovator
Is it possible that "A", being a short and very common word, is not actually indexed whereas "AA" is being indexed? I suggest re-testing with "B" and "BB".

Jeff

andy
Champ on-the-rise
Champ on-the-rise
Hi

firstName and lastName on person are tokenised - and this affected by some tokenisation issues.
It annoys Will more then anyone I know called A 🙂

This issue is fixed with SOLR where there is also a (configurable) cross-language tokeniser which as no stop words and only uses white space and puctuation to split.

Andy

mrsaqib
Champ in-the-making
Champ in-the-making
Is it possible that "A", being a short and very common word, is not actually indexed whereas "AA" is being indexed? I suggest re-testing with "B" and "BB".

Jeff

I've tested with all other alphabets, only "A" doesn't works. Smiley Sad

mrogers
Star Contributor
Star Contributor
Yes 'A' is a stop word in English.

mrsaqib
Champ in-the-making
Champ in-the-making
Yes 'A' is a stop word in English.
Thanks everybody..
I've to do some workaround…

mrsaqib
Champ in-the-making
Champ in-the-making
Yes 'A' is a stop word in English.


Can I disable this stop word thing?  I was just looking around and found this link (https://forums.alfresco.com/en/viewtopic.php?f=4&t=10251&start=0) where in the last post by "andy" he said that "You could use a customized version of the analayser and set an empty stop word list" but didn't mention HOW… ??

anyone can help me please with its implementation process?

Thanks

shubhada
Champ in-the-making
Champ in-the-making
I am using alfresco4.0.2.9 enterprise version.
While searching contents with some values, it is returning All nodes instead of specific nodes.
Here is the scenario I am facing,
Totally I have 4 contents created with "country" "aspect" added. values of aspect are UnitedKingdom(UK), Australia(AU), Belgium(BG) and India(IN). When I search for a content with countryCode as IN, it is returning all 4 contents. But When I search for other 3 countrycodes, it is returning specific content.
Is there any alfresco predefined specific value for "IN" ? When I change country code of India to something else, it is returning the correct result.Same issue with value "IT" also.
Can anyone help me to identify the issue here..?
Thanks