Search result pagination loosing/doubling items

Hi,
my client is running Portal 10.1.2.0.2 (Build: 139) and has a custom search portlet on a page.
It's set up to search for items of a specific custom item type in one page group only.
When users search the results sometimes (maybe always) lacks some items and doubles some (same item shown twice).
I am a fairly experienced Portal developer and have verified this myself.
If I search for some word X I get 408 document hits. If the portlet is set to paginate the result at 200 hits per page I get 15 items doubled. The last 14 on page 1 (1-200) are the first 14 on page 2 (201-400). The last item on page 2 is the first on page 3 (401-408).
Next I set pagination to 150 and search for the same word. Still 408 hits. This time 9 on the first page (1-150) showed up on the second page as well (151-300) (this time not last/first but 4 "single" items after/before the doubles). The last 12 items on page 2 was the same as the first 12 on page 3 (301-408). A total of 21 doubles.
So I set pagination to 500 (all on one page) and serached for the word again. This time I'm unable to find any doubles.
As the total number of hits was constant, this means that the first pagination did not show 15 items and the second pagination lost 21.
I have searched the forums and MetaLink but found nothing.
Has anyone heard of this before?
Kind regards
Tomas Albinsson
Stockholm, Sweden

OK, a month later...
The same search word now gives 410 document hits (more docs have been added).
A pagination of 200 now gives 15 doubles on page one (last 15 is the same as first 15 on page two) and one double on page two (last item is the same as first on page three).
I set up a new custom search portlet, restricted it to just find items of a certain subtype and let the user search for text and select a year (custom attribute of the item type). Same result as the original search portlet.
If I select another year I just get 26 docs. If pagination is set to 50 I see them all and no doubles. Changing pagination to 5 items per page produces two doubles. The last two on page 3 (items 14-15) are the same as the first two on page 4.
Compared to the complete list I can see that items 14 and 15 are wrong, they hide two docs in those places in the complete list.
Next I turned off the subtype restriction (ie all types are OK), leaving just search text and year for the user.
The same search word that gave 26 above now gave 40 hits.
A pagination of 15 was fine.
A pagination of 10 was fine.
A pagination of 8 gave two doubles: the last on page 3 (item 24) was the same as the first on page 4 (item 25) and the last on page 4 (item 32) was the same as the first on page 5 (item 33).
A pagination of 24 gave one double: the last item on page 1 (item 24) was the same as the first on page 2 (item 25).
A pagination of 23 gave two doubles: the last two on page 1 (items 22-23) was the same as the first two on page 2 (items 24-25).
Next I turned off the year custom attribute LOV restriction, leaving only the search text (for items in one page group).
A search for three words gave 42 hits.
A pagination of 17 gave one double, the last item on page 1 (item 17) was the same as the first on page 2 (item 18).
This seems fairly easy to reproduce. A custom search portlet restricted to items in a page group.
Find search terms that give a reasonable number of hits. Set the pagination higher then the amount first, then to something that gives a few pages. The doubles seem to show up at the page "borders" (last/first on a page).
As I have only one environment I'd be happy if someone could test this.
Kind regards
Tomas

Similar Messages

  • PDf files are not directly coming in search results, rather coming as a list item \

    I have shared search from one farm and 2 other farms are consuming it. PDF search is working fine for one consuming farm but for the hosting farm and the other consuming farm it is showing the result as list item but not as a direct link to the document.
    Any suggestion pls
    When the other consuming farm uses the own dedicated search service then pdf files are coming in search result but when it is pointing to the shared proxy it is not working. But for one consuming farm it is working fine.

    Hi ,
    Whether you crawled the same content source using the Shared Search service application. If not, please crawl a same content, test again and compare the result.
    In addition, whether you configured PDF correctly for the Shared Search, please try to configure it again as the link:
    http://www.codeproject.com/Articles/82546/How-to-configure-PDF-iFilter-for-SharePoint-Server
    Here are two similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/fb170ef6-d0fc-4044-a54d-87695066a5d2/search-results-pdf-files-showing-item-not-link-to-document?forum=sharepointadminprevious
    http://social.technet.microsoft.com/Forums/en-US/c540b280-135a-43ba-91b6-d8e408df25dd/search-returning-link-to-dispform-instead-of-the-link-to-pdf-document?forum=sharepointadminprevious
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Add "Save" button to search results

    Hi,
    a customer would like to add a "Save" button to search results to enable users to download documents in KD instead of opening them.
    Results can be for instance from a crawled file system.
    How can I do it?
    Thanks.
    Jacopo

    As long as your list is bring crawled, which it must be, your custom columns should get mapped to managed properties. You can now update your Search Results Web Part's Item Display Template to retrieve this additional particular managed property,
    and then display it if there is a value.
    Eric Overfield - PixelMill -
    ericoverfield.com -
    @EricOverfield
    The library is being crawled and I added the column to "Managed Properties" on the search settings on O365 and mapped it to the actual column. Now I don't know how to add it on the "Search Result" Webpart to include the Column Property before
    displaying the name of the document
    AJ MCTS: SP 2010 Configuration MCSA: Windows 7 If you find this post useful kindly please mark it as an answer :) TY

  • Caching search results required

    We have the following scenario:
    1. Custom search portlet is on a tab on a page and
    is used for searching portal items.
    2. When the search results are displayed - the item
    has an Edit link associated with it which links to
    a custom jsp page where the item attributes can be
    edited.
    3. After editing the attributes on the jsp page, we would like
    to return to the page where the user came from (the search
    results) - but the last search results must be retained on the
    page when the user returns back. Currently every time we go back to the
    search results - the old results are not cached.
    Any thoughts on how we could achieve this caching of
    the search results?
    Thanks,
    Suzanne

    Hi,
    Unfortunately that is not something that is happening with us..my search form still shows the same serach results of the previous search even if i navigate to another tab and get back to it !
    I am using a custom search portlet with Oracle 10g as portal version
    thanks

  • Search results webpart

    Hi,
    I am looking to configure "Search Results webpart" to display items that are currently checked out by the current logged in user. I want the results to be shown from the current site.
    Can you please list steps to configure the result sources and property filters to achieve the same.
    techie

    Hi techie,
    This behavior can be altered in Document Library Settings ->
    Versioning Settings -> Draft Item Security
    Select the option Any user who can read items.
    This will allow all users to see draft items including the crawling account.
    Reference:
    https://support.microsoft.com/kb/2304855?wa=wsignin1.0
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • How to sort web app items based on few fields of it on search result page?

    I have a web app and its search. The search results are on multiple pages means it has pagination. My client's requirement is to have a feature which will sort results based on some web app items. for example we have a field price so when user select the price it needs to sort from high to low. Any one have idea how to do it?

    I have just been playing around with this for something else, all you need to do is duplicate your price field into the weighting field and it will automatically sort from High to low for you.
    Cheers
    Duncan

  • How to display item procedure results in Search results?

    I have a custom item type based on Image that displays a thumbnail instead of the image itself. This is accomplished using a procedure call and displaying the results with the item and modifying the region attributes to omit the image, but when the items appear in search results, the procedure results are not displayed.
    How do I get an item's procedure results to display in search results?
    TIA

    Are you asking how to pivot the results of the query? Do a search for horizontal looping. If that's not what you are asking, please provide more details.

  • Need to add Menu Item to Search Result Template page

    Hi Guys,
    I am using UCM 11g and I am customizing serach result page.
    When we do search on UCM, we get a search result page. This search result page has a two drop downs (on the top right) "Change View" and "Search Action" in the blue strip.
    I have to add one customized dropdown option in "Publish Selected", it worked well with 10g by overriding searchapi_result_menus_setup include but not working in 11G.
    Appreciate your help on this, Thank you
    Thanks,
    Ashok

    Reunion1980 wrote:
    ..I need to add item "About" to frame's system menu.
    Is there any way to solve this problem?Try this link - [http://pscode.org/jh/bin/helpsetter-apidocs.jnlp]. It is sand-boxed, like an applet. It should prompt if you want to create shortcuts, click OK/Yes.
    After you run it, open the 'All Programs'/system menu. There should be an item under the 'JavaHelp System' menu for the 'JavaHelp System JavaDocs'. That link is to launch the application again. [Java Web Start|http://www.java.com/en/download/faq/java_webstart.xml] *(<- link)* is what installs the menus. JWS can also install menus specifically for application help.
    Older applications declared the required menu items and desktop shortcut in the JNLP launch file, but JRE 1.6.0_18+ offers the IntegrationService *(<- link)* to applications, and provides feedback on success/failure. Note that some systems will ignore requests for desktop integration. Ubuntu Linux will allow for the creation of desktop shortcuts, but silently ignore requests for menu items.

  • How to filter list items by current system time in search result wp or result source SharePoint 2013

    I want to display Items with PressDate less than or equal
    to current time in my search result webpart in SharePoint 2013.
    It is working fine for current date but not considering current time.
    {searchTerms} ContentType="ABC" PressDateTime<{Today+1}
    Above query not supporting for Now(), due to that it
    is showing items which are less than or equal to current (today's) date.
    How can I compare time with current system Time?..Thanks in advance.
    Regards, --NP

    You can achieve the same by using a Current Date Offset in a CAML Query to Filter List Items.
    Have below links for your reference.
    Sharepoint Tips And Tricks
    CAML Query to Date prior to 30 days from today
    Thanks.

  • Exclude deleted items from the search results

    My users state that documents that they deleted days ago are still showing in the search results; how do I exclude all the items in all of the farm's Recycling Bins from being displayed in the search results?
    Also, I have heard complaints that the search is displaying results that match their query, but they don't have permissions to the files; how can I exclude items that the user doesn't have permissions for?

    Take a look at the following article.  There are several policies that cover how long items remain in the index if they are missing from an individual crawl.  By default they tend to be set fairly high (I think 30 days is about the average).  YOu
    can change these values to modify the policies to remove content more quickly.  Just remember missing from a crawl isn't always due to an item being deleted.  So if you decrease these policies you run the risk or removing existing content along with
    deleted content.
    http://geekswithblogs.net/simonh/archive/2013/12/09/search-crawl-deletion-policies-sharepoint-2013.aspx
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Java Exception during we click the item short description in search result

    Hi Experts,
    We are in SRM-MDM Catalog 3.0.
    When we click a item's short description in catalog search result list to open the item detail, the new screen opened with a internal server error. And the error summary is "java.lang.NullPointerException: The relationship ID is not an optional parameter." I have validated the XML mapping, I can not find any fields which were used for the "relationship ID".
    The SAP notefound  in a forum is for SRM MDM Catalog 3.0 SP02 but we are using SRM MDM Catalog 3.0 SP09.Can anyone
    please advise.
    Below is error
    500 Internal Server Error
    SAP NetWeaver Application Server 7.00/Java AS 7.00
    Failed to process request. Please contact your system administrator.
    Hide
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    java.lang.NullPointerException: The relationship ID is not an optional parameter. at com.sap.mdm.data.commands.RetrieveRelationshipsCommand.execute(RetrieveRelationshipsCommand.java:91)
    at com.sap.mdm.extension.data.commands.RetrieveRelationshipsExCommand.execute(RetrieveRelationshipsExCommand.java:43)
    at com.sap.srm.mdm.Model.getRelationships(Model.java:3510)
    at com.sap.srm.mdm.Model.updateRecordRelationships(Model.java:3683)
    at com.sap.mdm.srmcat.uiprod.ItemDetails.displayFixedItemDetails(ItemDetails.java:6047)
    ... 34 more
    Regards
    Sunil

    Hi Sunil,
    There is only one cause for Nullpointer exception. The connectivity between the source and target system no longer exist .
    Please restart the MDM server once this might help .
    Regards,
    Vignesh

  • Display of Item Level Fields in Complaint Search Result

    Hi,
    We have enhanced the complaint search result screen to display columns such as item category or code group. These values come from the item level, so the result list displays blanks under these columns. Is it possible to populate these fields? Something like, displaying multiple rows for the same complaint, with different values for item level fields in each row?
    For example, there is a complaint with 3 items. The user searches for complaints based on some header field, and this complaint is in the result list. Is it possible to display 3 different rows for the same complaint, with the value for Item Category being different for the 3 rows?

    Hi,
    Yes, this is possible but it a custom development.
    We had similar requirement where we needed to search all searvice orders and complaints belonging to an item category.
    We created a Z-search component for this and implemented the logic .
    If the complaint search component has item category as a search parameter ( i am not sure) then it will be simple...but it is doesnt have it, then u can include it programatically or using AET ( if you are on 7.0) .
    The result population will be programatic as you will have to search complaints matching to your item category.
    There are large no of item categories per transaction type, so dynamic search takes too much time and times out on web ui..You must supply atleas one valid item category as the basis for your search.
    Thanks & regards,
    Suchita

  • Solr search returns 0 results if search phrase is in double quotes

    sI have one search result that looks like this:
    Outlook Out of Office Assistant
    Jul, 28, 2014 - To activate the Out of Office Assistant: On the Tools menu click Out of Office Assistant. In the Out of Office Assistant dialog box select the Send Out of Office auto-replies radio button. If you want to specify a set time and date range select the Only send during this time range check box. Then set the Start time and then set the...
    When I do this search, I get 10 results back including the one above.
    <cfsearch
    name="qTechTips"
    collection="#collection#"
    criteria='secondary_id_i:24 out of office'
    orderby="sort_date_s desc"
    />
    But when I do a phrase search for "Out of Office":
    <cfsearch
    name="qTechTips"
    collection="#collection#"
    criteria='secondary_id_i:24 "out of office"'
    orderby="sort_date_s desc"
    />
    or
    <cfsearch
    name="qTechTips"
    collection="#collection#"
    criteria='secondary_id_i:24 "Out of Office"'
    orderby="sort_date_s desc"
    />
    I get 0 results. What am I doing wrong? I would like to do a phrase match to what is in the body, not the "title".
    I am on ColdFusion 11, update 3

    Escaping the quotes didn't help .I already read the solr search examples by Adobe but that didn't help me much. I don't know if this is documented in the CF documentation anywhere (I couldn't find it). What I worked for me after looking at the Apache Solr documentation was that you need to add "+" in between the words in the phrase:
    <cfsearch
    name="qTechTips"
    collection="#collection#"
    criteria='secondary_id_i:24 "Out+of+Office"'
    orderby="sort_date_s desc"
    />
    Expecting my users to enter "+" is a bit much but I know they can handle putting double quotes about phrases they want an exact match for. After some googling, this is my solution for automatically adding the "+" between the exact phrase for cfsearch processing (if you have a better solution, please let me know) :
      <!--- ////START: solr search --->
      <cfset solr_criteria = "">
      <!--- //START:Process the user's input if they use exact phrase search (in double quotes). I change their keyword input so it is cfsearch friendly. If a user enters 'how to set "Out of Office" and "Web Access"', we clean it up so it is 'how to set  "Out+of+Office" and "Web+Access"' for the cfsearch--->
      <!--- I don't know if there is a better way to do this, but this is what I came up with. --->
      <cfset txt_keyword_solr = #txt_keyword#>
      <cfif find('"',txt_keyword_solr)>
        <cfset stringphrase = reMatch('"([^"]*)"',txt_keyword_solr)>
        <!--- <cfdump var="#stringphrase#" label="Example REMatch"> --->
        <cfloop array="#stringphrase#" index="i">
          <cfset txt_keyword_solr = #ReplaceNoCase(txt_keyword_solr,i,rereplace(i, " ","+","all"),"all")#>     
        </cfloop>
      </cfif>
      <cfif LEN(TRIM(txt_keyword_solr)) GT 0>
        <cfset solr_criteria = solr_criteria & ' ( #Trim(preservesinglequotes(txt_keyword_solr))# ) '>
      </cfif>
      <!--- //END:Process the user's input if they use exact phrase search (in double quotes). --->
      <cfsearch
    name="qTechTips"
    collection="#collection#"
    criteria="#solr_criteria#"
    orderby="sort_date_s desc"
    />
      <p><cfoutput>#solr_criteria#</cfoutput></p>
      <!--- ////END: solr search --->

  • I get zero search results even for items I know are at the store. Anyone else getting this behavior?

    On two different machines, one running Snow Leopard, the other running Yosemite, iTunes does not display search results for most searches, including items that I know are at the store. I'm just wondering if anyone else has experienced anything similar?

    Yes.  I find that I have to revise my search several times to finally find what I want.  If I can't find it under the artist, I might find it under the title of the song, or some variation of the title.  It seems to be more common with older songs or movies.  This has been true even before the current update.  Case in point, recently I couldn't find a song I wanted under the artist's listing.  I searched under the name of the song, and not only found the song, but also some albums that hadn't been listed under the artist in my first search results.

  • Custom List Item Pages in Search Result

    Hi there,
    We are using SharePoint 2013 and have built a custom web part that displays a series of items from a list. When you click on one of the items, it takes you to a custom page that displays the selected list item, styled with our company branding. This works
    perfectly. However when a user performs a search, the search results includes the link to the SharePoint list item, and not the custom branded page. We'd like to have the search results include this custom page, instead of the standard SharePoint dispform.aspx
    page. Is there anyway to exclude the dispform.aspx and include our CustomItem.aspx in this search results? If so, how is this possible?
    For instance, a standard search returns the result:
    https://mydomain.com/Lists/Announcements/DispForm.aspx?ID=23
    Our custom branded page, which we want included in Search results is this:
    https://mydomain.com/AnnouncementsDetail.aspx?ID=23
    Thanks in advance!
    cflbasser

    Does you custom page have a managed property associated with its location, say 'myURL'?  I think you should be able to achieve this by customizing one of the Search Display Templates.  There are a couple of things involved here.  For Result
    Display rendering, Item_Default.html display template will have a "ctx.RenderBody(ctx)" call, in this case calling Item_CommonItem_Body.html template to display each item. 
    Take a look through Item_CommonItem_Body.html and there should be a place where instead of the OOTB managed property like Path or Url, you could put in your custom managed property to be displayed.  It's best to not update the default display templates
    but create custom ones and use custom result types with them.  In this scenario, you are not touching what's being indexed, but simply changing the UI layer.
    Another idea would be to use CEWS (Content Enrichment Web callout) and simply take the existing managed property responsible for printing out the link (like URL or Path), re-write it using some regex or similar logic and output it to the existing managed
    property or a new one.  You could have a trigger to only do this in specific scenarios to narrow this down, such as only to fire if an input path prefix matches a condition. 
    I would recommend doing this with Display Templates if possible, since introducing CEWS can have a performance impact on crawls, depending on how many items will need to be touched.

Maybe you are looking for