Lucene Search Problem

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2008 06:50 AM
Hi All,
I have this problem with a lucene search started from a Alfresco javascript that has got me stumbled.
var docs = search.luceneSearch ("(PATH:\"/app:company_home/cm:Company/cm
omeContent/cm:Category//*\") AND (TYPE:\"cm:content\") AND (@cm\\:name:\"" + "my filename.html"+ "\")");
We use 2.9B build 683 on a test and production machine running both windows 2003 server with sqlserver. Which I thought had the same configuration.
In a subfolder of category is the actual file : "my filename.html"
On the test system the result of the search is 1, the file mentioned above. On production the same query result in 0.
Any pointers where to look would be greatly appriciated.
Kind regards,
Velli
I have this problem with a lucene search started from a Alfresco javascript that has got me stumbled.
var docs = search.luceneSearch ("(PATH:\"/app:company_home/cm:Company/cm

We use 2.9B build 683 on a test and production machine running both windows 2003 server with sqlserver. Which I thought had the same configuration.
In a subfolder of category is the actual file : "my filename.html"
On the test system the result of the search is 1, the file mentioned above. On production the same query result in 0.
Any pointers where to look would be greatly appriciated.
Kind regards,
Velli
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2008 01:31 PM
Hello,
Do you have the same OS and user locale on both servers ?
Do you have the same OS and user locale on both servers ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2008 07:13 AM
I had this problem too, not just limited to the above mentioned problem.
I executed several of the same Lucene searches using the SDK from 2.9B. I executed one after the other by executing the same main method multiple times. The result was very often 0 or the expected result. However I couldn't find a pattern to when it would work and when it wouldn't work. The same query searches providing different results is unacceptible. Hence I decided not to use it anymore.
For finding content I used a wildcard when searching, this worked in 100% of the cases. Then I iterated over the resultset and I took from those iterations what I needed. It's not very performant but it'll have to do for now.
I executed several of the same Lucene searches using the SDK from 2.9B. I executed one after the other by executing the same main method multiple times. The result was very often 0 or the expected result. However I couldn't find a pattern to when it would work and when it wouldn't work. The same query searches providing different results is unacceptible. Hence I decided not to use it anymore.
For finding content I used a wildcard when searching, this worked in 100% of the cases. Then I iterated over the resultset and I took from those iterations what I needed. It's not very performant but it'll have to do for now.
