Strange behaviour with Lucene query

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2012 04:07 AM
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
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
Labels:
- Labels:
-
Archive
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2012 11:40 AM
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
Jeff

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2012 03:13 PM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2012 06:59 AM
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2012 08:45 AM
Yes 'A' is a stop word in English.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2012 02:08 PM
Yes 'A' is a stop word in English.Thanks everybody..
I've to do some workaround…

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2012 02:29 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2014 09:09 AM
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
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
