cancel
Showing results for 
Search instead for 
Did you mean: 

Search by Content Type

nikes
Champ on-the-rise
Champ on-the-rise
Hello all,

I have created custom content type "custom:Resume"

I have configured advanced search drop down box for Content Type, it is showing my custom content type also,
but when I select it and click search i get following message

Not enough information was entered to perform a search, at least one value must be entered or a location selected to search within. Text fields require a minimum of 3 characters.

I have uploadede documents with my custom content type, any idea why it is not displaying those documents?

Thanks,
Nikesh
7 REPLIES 7

cheffilet
Champ in-the-making
Champ in-the-making
The text formaly descripes your problem. For better performance and "search result quality" you shoult - at least - type in 3 characters to start a search. This is not a constraint only for custom-models but rather for all content-models!

nikes
Champ on-the-rise
Champ on-the-rise
well, what if I want to search all my custom type of documents?

Here there is nothing to type in search box, because if I type anything, it will return documents matching with that text only.

My requirement here is to find all documents of particular custom type.

Thanks for reply,
Nikesh

cheffilet
Champ in-the-making
Champ in-the-making
Hm thats a problem i guess. Well you could change web-client-config-custom.xml to decrease the amount of characters you must type in to query.


<config>
      <client>
         <search-minimum>3</search-minimum>
      </client>
</config>

But you can not change this to zero on the advanced-search-panel as alfresco will prohibit this query to execute.

You could write an extension to this with a query something like that: TYPE:"{http://myNamespace}myContent"

jayjayecl
Confirmed Champ
Confirmed Champ
you can set this minimum int to "1", and type "*" in the search box.
If this is not good enough, you can override search process in order to run a "*" search if nothing has been entered in the search box

nikes
Champ on-the-rise
Champ on-the-rise
Thanks Cheffilet and JayJayECL for quick reply,

I decreased amount of chars to "1".
I tried "*" as well as "*.*" in search box and selected custom type from Content Type drop down,
but it returns zero result.

I think out-of box it is not possible to achieve my requirement.

So as per JayJayECL's suggestion last option is to override search process.

nikes
Champ on-the-rise
Champ on-the-rise
Can anyone tell me which method of which class I have to override search feature?

Is it like extending feature? or Modifying core Alfresco code and build from source?

Regards,
Nikesh

inocka
Champ in-the-making
Champ in-the-making
I am facing the same problem. How you solved yours?