09-20-2017 05:52 AM
Hi All,
i am using Alfresco 4.1 and seeing a strange behavior . If i just upload a document in site and try to search it using
Advance search by selecting my custom type results 0 files. But when i update any property of that document ,it becomes searchable.
Can I do anything to resolve this issue or it is a default behavior.
Thanks,
Fouad
09-20-2017 07:10 AM
Hi
Are you using lucene or SOLR?
Does normal search work? Is it only advanced search that is broken?
Is it just eventual consistency? SOLR does not index your change immediately.
Does waiting resolve the issue? In which case it is expected behviour.
I suspect you are confusing cause and coincidence ....
Andy
09-20-2017 07:21 AM
Normal search is working even without updating property.
But when i select custom type in look for in advance search then document is searchable if i once update
any of its property.
Yes I want resolve this issue.
Thanks,
Fouad
09-21-2017 06:23 AM
Do any one have answer to this issue?
If i just upload a document in site and try to search it using
Advance search by selecting my custom type in "look for" results 0 files.
But when i set any property of that document ,it becomes searchable.
Thanks,
Fouad
09-21-2017 09:59 AM
Hi
There is not enough information here to work out what is going on.
No one can answer this issue with the information provided.
Advanced search uses the same information as normal search to find the document.
How are you trying to find the document? In normal search and advanced search?
What properties and what values are you searching for? What information has to be there to match?
What are you updating on the document?
Does the document have the data that matches before you update it? How do you know?
Have you got rules that only add stuff when it is updated? etc etc.
Andy
09-22-2017 03:20 AM
Hi Andy,
Thanks for asking questions.
Below are things I have done to search a file.
1. Uploaded a file named "Test.txt" in a folder having only one rule to have custom type on the uploaded docs.
2. And when I select content in "look for" option in advance search then my test file comes in result of search.
as shown below.
3. Then I have searched it using advance search using name property and selecting my custom type in the "look for" option in advance search then it result 0 files.
4. But when I set any property of test.txt file it becomes searchable using custom type in Advance search.
My question is If I just upload a file. How can it become searchable using custom type in Advance search.?
When is the indexing generated of files uploaded of custom type.
* Below code is present in some of the custom property of the type I am using for search in content model.
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>both</tokenised>
</index>
I am using Alfresco 4.1 and Solr with lucene as search engine.
Thanks,
Fouad
09-25-2017 10:48 AM
Hi
What is the rule? How exactly is it defined?
Andy
09-27-2017 05:27 AM
Hi Andy,
Rule is to make all the document as custom type on upload.
It is defined as follows
Right click over a folder with no rules applied and click More then Manage Rules.
I again verified after just upload the document becomes of my custom type as expected, But only few properties are showing on the node browser from all the properties defined in the content model of my custom type. But when i update any properties of the document all the properties defined in custom type shows up in node browser and it becomes searchable
09-27-2017 03:57 PM
Hi:
You can try to debug the "real search" that is done when using Alfresco advanced search for your custom type. Probably it includes some of the properties that are not consolidated when specializing content via rule, which may indicate a problem with your Alfresco search form config. Try this in custom-log4j.properties, do some search and look at the logs for the exact query:
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=DEBUG
log4j.logger.org.alfresco.repo.jscript.Search=DEBUG
I imagine that if you only show the saved properties by the rule in the custom type Alfresco search form , you can search and find the document without problems.
A similar behaviour might be in a form with a constraint list field always searching by the one of the values (without this property being set in the content rule - and no default value for this list).
Regards.
--C.
09-29-2017 05:08 AM
Hi Cesar,
Thanks a lot for giving debugging tips. After debugging on, I have seen in logs that "Query" contains only that property which are of Boolean type and name of file. But I am searching by name only after selecting my custom type in advance search.
How to fix this issue please suggest. I am completely stuck.
Thanks,
Fouad
Explore our Alfresco products with the links below. Use labels to filter content by product module.