Topic
  • 2 replies
  • Latest Post - ‏2013-06-14T17:39:12Z by fredrix17
fredrix17
fredrix17
21 Posts

Pinned topic Return all documents by default in search application

‏2013-06-13T11:40:15Z |

Hi! I'm trying to configure search application to show all documents by default.

In analytics application when it's loaded I've got all documtnts for analysis.

And search field query looks like *:* That mean "Wildcard query" as far as I understood.

It is possible to load all documents in search application by default?

Paste somehow *:* in query field when load search app. instead of empty query.

I'm beginner in JSP.

Thanks. 

  • UD4T_Jason_Lawlor
    UD4T_Jason_Lawlor
    1 Post

    Re: Return all documents by default in search application

    ‏2013-06-14T13:41:14Z  

    Hi,

    In order to load all documents by default when you bring up the search application, you would need to modify your URL that you type into the browser to make it look something like this :-

     

    http://<myserver>:8393/search/search.do?action=index&query=*:*

     

    Notice the parameter at the end of the normal Search URL &query=*:*. This will load the search application and populate the search box by default with *:*.

     

    You can then bookmark this link and have it load all docs by default each time you click.

     

    Please do not hesitate to contact me again if you require further information or assistance.

     

    Regards

    Jason Lawlor

    IBM Content Analytics QA

    Updated on 2013-06-14T13:43:54Z at 2013-06-14T13:43:54Z by UD4T_Jason_Lawlor
  • fredrix17
    fredrix17
    21 Posts

    Re: Return all documents by default in search application

    ‏2013-06-14T17:39:12Z  

    Hi,

    In order to load all documents by default when you bring up the search application, you would need to modify your URL that you type into the browser to make it look something like this :-

     

    http://<myserver>:8393/search/search.do?action=index&query=*:*

     

    Notice the parameter at the end of the normal Search URL &query=*:*. This will load the search application and populate the search box by default with *:*.

     

    You can then bookmark this link and have it load all docs by default each time you click.

     

    Please do not hesitate to contact me again if you require further information or assistance.

     

    Regards

    Jason Lawlor

    IBM Content Analytics QA

    Thanks for relpy Jason!

    I've try this URL and it works.

    I also try to find how to change search application to load this URL and get all doc 

    http://<myserver>:8393/search/search.do?action=index&query=*:*

    instead of

    http://<myserver>:8393/search/search.do?action=index

    I try to add this param (&query=*:*) in file %ES_HOME%\webapps\searchapp\search\index.jsp

    <%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
    <%@page import="com.ibm.portal.struts.common.PortletApiUtils"%>
    <%
    String contextPath = null;
    if (PortletApiUtils.getUtilsInstance() == null) {
    response.sendRedirect(request.getContextPath() + "/search.do?action=index&query=*:*");
    } else {
    %>
    <logic:forward name="initialize"/>
    <%
    }
    %>

    All I'm trying to do is to show all docs in collection after loginning info ICA.

    Bookmarks is not the best way.

    Thanks!

     

     

    Updated on 2013-06-14T17:48:49Z at 2013-06-14T17:48:49Z by fredrix17