Sorted dynamic list problem - Azure Search Index

Hello Everyone,
Let's consider following problem: Vote app - we have 1000 NBA players and we want to create an app which first: let user vote for a player he wants to see in the All Star Game, second: user gets current rank list (example: Michael Jordan 1st - 1M votes,
Derrick Rose 2nd - 0,9M votes, .. , Freddy Kruger - 999th - 0 votes and so on).
Question: what is the best structure that can be implemented here to keep this data sorted? I would like to query this data source already sorted - it is not allowed to get the list of 1000 and sort locally in app. For example: 800 players can have 0 votes
and I do not want to download their names just to display '0 votes' next to their names. I would like to get only 50 with highest score at the moment. Index should be refreshed-rebuild after each new POST-vote request.
Can Azure Search service and its Index help me to solve this problem? The perfect .NET SortedList synchronized structure would look like this [votes][name]:
SortedList[99982]['Michael Jordan']
SortedList[89921]['Derrick Rose']
SortedList[0]['Freddy Kruger']
SortedList[0]['Ace Ventura'] -> but SortedList does not allow the 0 KEY to appear twice.
Regards,

Hi pr0t,
It should be straightforward to get the data you want using the $orderby, $filter, and $top options. For example, if you have a field named vote, you could include this in your search request:
/indexes/players/docs?$orderby=vote desc&$filter=vote gt 0&$top=50
This will give the top 50 players by vote in descending order by vote. You can then put the data in whatever data structure you like on the client.
One thing to be aware of though is the way you update votes in the index. We highly recommend batching index updates as much as possible rather than updating one document at a time. You can have up to 1000 documents in a single batch when indexing. This
reduces overhead and indexing pressure on your search service.
Hope this helps,
-Bruce

Similar Messages

  • Sorting dynamic listing by element definition field.

    Hi,
    Does any one know how to sort a dynamic listing by one of the regional definition field?
    My situation is currently sorting is done by dDocTitle (<!--$SortField = "dDocTitle"-->). The title that is displayed in website(h1) has a different title from dDocTitle. So although it is sorting by dDocTitle, it looks random in the live website.
    So I was wondering if there is a way to sort dynamic listing by one of the element definition field.
    I was hoping that something like this will work but it didn't
    <!--$SortField = ssIncludeXml(dDocName,"ContentPage/Title/node()")-->
    Thanks.
    Edited by: K0907163 on 23-Nov-2011 03:00

    Wish there was a way, but unfortunately I don't think there is without building your own custom sort. SortField only takes metadata fields.
    My suggestion is to have your users actually use dDocTitle (or a different metadata field), as opposed to ContentPage/Title/node().

  • Unable to sort result list in a search crm 2007

    Hello everyone,
    I am facing a problem in CRM 2007, Iu2019m going to describe it.
    When I try to sort or filter a result list in the webclient, It is done by clicking on the header of the result list, well when i click on it instead of appearing the options ( such as ascending , descending or any value of the selection) there is a error in the web page ( so a sign of error appears in the left bottom corner of the screen)
    For instance if i search an account with a * then many possible accounts will appear in the result list, but i can not sort them by clicking on the header of the result list.
    Any help?
    Thanks in advance.
    Luis Angel Fiel

    Hi Masood,
    You understand it correctly, but in the result list We have more that one column. No header of any column is working.
    For instance when I am searching for an account in the result list will appear several accounts ( in lines ) and several columns in the columns there are  fields (STRUCT.ACT_DATE     STRUCT.CREATE_BY      STRUCT.DESCRIPTION     STRUCT.STA TXT) but no one of those headers are working.
    Thank you very much for your answer.
    Luis Angel Fiel

  • Dynamic lists and Searches

    Hiya,
    more than likely im being a bit simple about this but im
    pretty new to asp/sql so please forgive me!
    Im making a search page for the database im working on which
    is fine if i want to search single fields or two fields but where
    im stuck is if i want to search accross all fields but be able to
    leave some blank, ie search by author and company but not project
    name. At the momment i have to select something from each.
    The other problem i have is that im using dynamic lists to
    populate the search fields (a couple of the fields have about 300
    items in them) but when i come to view it everythings ok except it
    displays the last item in the list. How would i go about making it
    so that it displays blank or "please Select" as the default?
    hope someone can help and thanks in advance! My code for one
    of the simple pages is below but i need to apply the same
    principles to much bigger projects.
    Regards
    Si

    That doesnt work, it just inserts it into the list (if static
    then at the top) or dynamic then at the correct alphabetical place,
    either way the default value is set at the last entry in the list
    ie one beginning with z
    Si

  • Problem in while creating text search index

    Hi,
    When I am tring to create a text search index I am getting the following:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: GLOBAL_LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    ORA-06512: at "myschema.RECREATE_SEARCHINDEX", line 31
    ORA-06512: at line 2
    any idea what is causing the problem?
    saby

    Looks like you don't have a lexer called GLOBAL_LEXER, but you're trying to use it in the create index statement.
    Maybe it's owned by someone other than the current user - or maybe you meant to write WORLD_LEXER.
    Perhaps you could paste the whole index creation script here.

  • Problem while creating text search index

    Hi,
    When I am tring to create a text search index I am getting the following:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: GLOBAL_LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    ORA-06512: at "myschema.RECREATE_SEARCHINDEX", line 31
    ORA-06512: at line 2
    any idea what is causing the problem?
    saby

    Hi,
    I think Probably what has failed is some inner kind of operation that didn't handle the exception correctly, that is dropping the offending object automatically and it issue is raised (error). Therefore you'll have to manually drop the index and re-create the desired index (that might solve your problem)
    - Pavan Kumar N

  • Can Azure Search support indexing of documents (pdf, doc etc)

    Hi,
    I want to implement the azure search service indexing of documents (pdf, docs etc). is it possible ? if yes, then how ?
    Thanks

    Hi Shib,
    I wanted to respond with a few ideas based on your question.  As of today, we do not have a document cracker for Azure Search to allow you to index the content from files such as the ones you suggested.  This is a pretty highly requested feature
    (http://feedback.azure.com/forums/263029-azure-search/suggestions/6328662-blob-indexing-w-file-crackers), but we have not too date been able
    to prioritize this. 
    In the meantime, somethings you might consider looking at are iFilter or Apache Tika.  These are both great options that would allow you to programmatically extract the text from these files.  Based on the extracted text you could then post the
    content to Azure Search.  I personally think this example on CodeProject is a pretty good starting point if you were to consider using iFilter:
    http://www.codeproject.com/Articles/13391/Using-IFilter-in-C
    I hope that helps.
    Liam
    Sr. Program Manager, SQL Azure Strategy -
    Blog

  • Search index problem

    One of my clients is having a strange Oracle Text problem (oracle 8), and I would be greatful for any help.
    Essentially, I have built a context index on a table as follows:
    drop index search_partner_name;
    create index search_partner_name on PARTNER(NAME)
    indextype is ctxsys.context;
    The PARTNER table contains many other columns.
    Now, when one of the other columns is modified (e.g. PARTNER.URL) I can no longer search for the PARTNER.NAME until I rebuild the index.
    I understand that I have to rebuild the index if I create a new PARTNER.NAME row, but rebuilding for updates to non-indexed columns seems a little strange.
    Any pointers?

    Hello Phil
    In order to limit a Search iView to a specific index(es), create a Search Options set and assign it to your iView.
    To create a Search Options Set, go to System Administration > System Configuration > Knowledge Management > Content Management > User Interface > Search (advanced options) > Search Options Set.  The parameter to pay attention to in a Search Options Set for this specific purpose is the Search Index IDs (or Index Groups, depending on how you want to limit the search).
    Then, to assign the new Search Options Set to your Search iView, open the iView for editing in the Portal Content Directory, and enter the name of your Search Options Set in the corresponding iView parameter.
    Hope this helps!
    Cheers,
    Fallon

  • [sentinel] correlation problem and dynamic list

    Dear All,
    I have two problems as following:
    1. I have write a correlation rule as following:
    filter((((e.CollectorPluginName = "Microsoft Exchange POP3") and
    (e.EventName = "pass")) and (e.XDASOutcomeName = "XDAS_OUT_FAILURE")))
    flow window(((w.SessionID = e.SessionID) and (e.SourceIP =
    w.SourceIP)),filter((((e.CollectorPluginName = "Microsoft Exchange
    POP3") and (e.EventName = "user")) and (e.TargetNewResourceName inlist
    sensitiveuser))),120) flow
    trigger(5,120,discriminator(e.SourceIP,e.TargetNew ResourceName))
    I have following problem:
    I will call the first filter event as A event, the second filter event
    as B event, the first filter corresponding log include username field
    named TargetNewResourceName, the second filter event also called as
    storaged event,
    but B event log does not include username field, so I don`t know who
    logon failed, so i need gain the username from A event, there is same
    sessionID between A and
    B, customer`s demands need know who logon failed when user logon to
    pop3 mailbox failure three times, so correlation results is following:
    username: $TargetNewResourceName$ logon to mailbox failure via pop3 at
    least 3 times in two minutes, sourceip: $SourceIP$,
    MacAddress:$CSOTSourceMac$,Please pay
    attention to it!
    But correlation result is following:
    username: Null logon to mailbox failure via pop3 at least 3 times in two
    minutes, sourcip: 10.108.54.50, MacAdress: 247703743F34,Please pay
    attention to it!
    There is no username value($TargetNewResourceName$), why?
    2. I know arcsight active list(same as sentinel dynamic list) support
    multiple fields in one table, but sentinel dynamic list only support
    alone value,
    if I want storage ip and macaddress for DHCP logs into one table, How to
    implement? and that I also correlation rule can invoke function same as
    get_ipaddress or
    get_dhcpaddress in arcsight, Does sentinel provide same function?
    thanks
    steve_zeng
    steve_zeng's Profile: https://forums.netiq.com/member.php?userid=3875
    View this thread: https://forums.netiq.com/showthread.php?t=48076

    This sounds like a Sentinel product, vs. Sentinel plugin, issue. Please
    post it in the Sentinel list on forums.netiq.com to get exposure to the
    largest group of people who may be able to help. This list is
    specifically for plugins.
    Also, when posting in the other list, if you can post the raw data from
    each of the events that may help others understand with which data you
    have to work.
    Good luck.

  • Search & index problem! (A setting missing I think!)

    Hi All
    I have created a file system repository to display the content of our HR policy documents. I have then created an index to search and classify the documents and I have moved them into there area in the Taxonomy structue. However when I search I seem to get the results from more than one index and I have no idea why?
    Can anyone help
    Thanks Phil

    Hello Phil
    In order to limit a Search iView to a specific index(es), create a Search Options set and assign it to your iView.
    To create a Search Options Set, go to System Administration > System Configuration > Knowledge Management > Content Management > User Interface > Search (advanced options) > Search Options Set.  The parameter to pay attention to in a Search Options Set for this specific purpose is the Search Index IDs (or Index Groups, depending on how you want to limit the search).
    Then, to assign the new Search Options Set to your Search iView, open the iView for editing in the Portal Content Directory, and enter the name of your Search Options Set in the corresponding iView parameter.
    Hope this helps!
    Cheers,
    Fallon

  • I have a problem on dynamic list wizard

    hello all  am beginner in dreamweaver it is possible to add a button in a dynamic list so yes how to do it for exemple i want to add a button detail which will allow me to have a detail a selected line
    thank you for your answers

    You can do this by adding an extra link to the table cell which already holds the standard edit/delete links, like this:
    <a href="details.php?id=<?php echo $row_rs...1['id']; ?>">details...</a>
    The name of the variable placeholder "$row_rs...1" mentioned above will have to be replaced with the name of the "List Recordset" which your Dynamic List is actually using -- you can retrieve this name by switching to Code View and location the code section starting with:
    // Defining List Recordset variable.
    ADDT uses a pretty straight-forward rule to set this name:
    a) $row_rs
    b) the name of the database table
    c) 1
    Hope this helps.
    Cheers,
    Günter

  • Dynamic Lists

    Hello. I've been having problems figuring out how to create dynamic lists. My latest attempt involved using a JList's getSelectedValue( ) in a ListListener class to change form values based on a users selection. The problem is identifying list objects.
    All I can come up with is to nest a search algorythm in a loop, invoked from within a list listener class, but this seems highly inefficient if there were, say, several hundred elements in the list.. Of course my measure of efficiency is based on numbers, not a computers processing power, but anyway, is a search this the only way to match selected items with objects, or is there some method I'm overlooking?
    Thanks,
    nomad
    Ex: excuse the weak pseudo-code
    ListListenerClass
    public void valueChanged(ListSelectionEvent event)
    vectorIndex = vector.size( );
    while( vectorIndex != -1 ) // used to cycle through comparisons/objects
    if (event.getSelectedValue( ) == someObject[vectorIndex].getRelativeTitle( ))
    performRequestFormUpdates
    else
    -- vector index
    /** basically, in case it's not apparent, im cycling through the vector's elements in reverse order, copying one object/element per cycle into a buffer object. each cycle compares the selected list item's value -- 'X' -- with the corresponding value in "buffered" object Y, retrieving Y using a getMethod.
    **/

    Hello. I've been having problems figuring out how to create dynamic lists. My latest attempt involved using a JList's getSelectedValue( ) in a ListListener class to change form values based on a users selection. The problem is identifying list objects.
    All I can come up with is to nest a search algorythm in a loop, invoked from within a list listener class, but this seems highly inefficient if there were, say, several hundred elements in the list.. Of course my measure of efficiency is based on numbers, not a computers processing power, but anyway, is a search this the only way to match selected items with objects, or is there some method I'm overlooking?
    Thanks,
    nomad
    Ex: excuse the weak pseudo-code
    ListListenerClass
    public void valueChanged(ListSelectionEvent event)
    vectorIndex = vector.size( );
    while( vectorIndex != -1 ) // used to cycle through comparisons/objects
    if (event.getSelectedValue( ) == someObject[vectorIndex].getRelativeTitle( ))
    performRequestFormUpdates
    else
    -- vector index
    /** basically, in case it's not apparent, im cycling through the vector's elements in reverse order, copying one object/element per cycle into a buffer object. each cycle compares the selected list item's value -- 'X' -- with the corresponding value in "buffered" object Y, retrieving Y using a getMethod.
    **/

  • Search indexing not working in Outlook PST files

    My boss recently got Office 2010 on his new laptop.  I copied his PST's from his old laptop whihc had Office 2003 on it to the new one and added them to his profile.  They are there and look to be workign fine, until you try any sort of search
    on them.
    If I am looking at the eMails in the PST and I see a whole lot from
    [email protected] and then in the search box I type
    [email protected] the emails are all firltered away and I am told that there are no items that match the criteria.  This also happens when I try try to run an advanced search.
    So according to this post,
    http://social.technet.microsoft.com/Forums/en/outlook/thread/b1859770-dfb5-4224-995f-be828bd21333, I disabled Indexing of outlook, then search stops working on my default location, i.e. if I search my inbox or anything in that datafile, I get
    no results returned, but if I search one of the archieve PST files for say
    [email protected] the search runs for ages with out retunring any results, if I stop the search and then rerun it then I get results.
    It just seems a bit strange that I have to choose iether or.
    Please help ASAP as my boss leave tomorrrow on a trip to Australia and I would like to get this sorted out be fore he leave.
    Regards
    A user needs the admin password like nitro glycerine needs a good shake.

    This seems to be an ongoing problem. The instant search feature in Outlook 2010 is not working correctly for a large number of users. I have read many, many posts here in TechNet and many more that come up with a Google search. None of the solutions provided
    are permanently solving the problem.
    I have tried every potential solution I have found:
    Rebuilding the index did not work
    The registry key(s) PrevenIndexingOutlook, PreventIndexingEmailAttachments, did not exist (the Search Key did not exist). I tried adding both keys in 2 different suggested locations (HKCU and HKLM) Search indexing did not work with or without those keys
    added.
    I have tried everything that I have found everwhere to resolve this problem. I found one solution that appeared to work a month or so ago. Unfortunately, I cannot find it again and no new emails have been added to the index since that day (09/15/2010).
    I tried rebuilding the index (again). This process has removed all of the emails from the index that had been there after I applied the fix that seemed to work. I am continuing to research this problem in the hope that I will find that previous partial solution.
    It would be nice to get some feedback from Microsoft to let us know if this problem is being looked into. All of the solutions provided from Microsoft on these forums have failed to correct this long term problem.
    FYI: I am running Windows 7 Ultimate (64 bit) and Office Professional Plus 2010. These were fresh installs, not upgrades. After installation the instant search feature in Outlook was working, I do not know exactly when it stopped working.

  • How to create two level dynamic list using JSP , Java Script and Oracle

    I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET.
    Plz response with details.

    1) Learn JDBC API [http://java.sun.com/docs/books/tutorial/jdbc/index.html].
    2) Create DAO class which contains JDBC code and do all SQL queries and returns or takes ID's or DTO objects.
    3) Learn Servlet API [http://java.sun.com/javaee/5/docs/tutorial/doc/].
    4) Create Servlet class which calls the DAO class, gets the list of DTO's as result, puts it as a request attribute and forwards the request to a JSP page.
    5) Learn JSP and JSTL [http://java.sun.com/javaee/5/docs/tutorial/doc/]. Also learn HTML if you even don't know it.
    6) Create JSP page which uses the JSTL c:forEach tag to access the list of DTO's and iterate over it and prints a HTML list out.
    You don't need Javascript for this.

  • How to create dynamic list element in Site Studio designer?

    Hi all,
    I have installed the Site Studio Designer(10gR4).The dynamic list element that i have added in the contributor region executes a query to search and display all the files in a particular folder.In the contributor mode when i try to add/edit the dynamic list element it gives an error saying :
    Unable to perform the action due to the following reasons:
    [+] Unable to retrieve search results. Unable to retrieve search results. Unable to create result set for query 'SELECT IdcColl2.dID, dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.* FROM IdcColl2, DocMeta WHERE IdcColl2.dID=DocMeta.dID AND (((((( xCollectionID >= 14 AND xCollectionID <= 14 ) AND NOT ( (CONTAINS(xDontShowInListsForWebsites, '{DIPP_Sample}') > 0) )))))) ORDER BY dDocTitle desc'. ORA-20000: Oracle Text error: DRG-10599: column is not indexed
    I have enabled the full-text search on the content server and also included xWebsites and xWebsiteObjectType columns to be full indexed in the Zone Fields Configuration.Is there any other setting to be done?Please help.
    Thanks,
    nithya

    Hi
    Include the xDontShowInListsForWebsites also from the zone filed and then update it.Then test it out.
    Hope it helps
    Srinath

Maybe you are looking for

  • Regexpr from java not working in SQL

    Hello I have a complicated regexpr coming from java but when I try to use it with oracle RGEXPR_SUBSTR, it's seems to be buggy as I'm not having all the result (only partial) Here is my regexpr for oracle and below the Java version Oracle version: ^(

  • Question regarding Receiver Determination and Differente Namespaces

    Dear sirs, I have the following scenario: I have a mail account read by a sender communication channel IMAP4 in namespace http://a. The message is sent to a receiver communication channel type XI delivering to an ABAP Proxy at the same namespace. Eve

  • Is it possible to remove "Revision" from standard check in

    Hi, Is it possible to remove or disable the revision text box in the standard check in screen. This number can be changed by the user each time the document is checked in. It can be changed to go backwards and use duplicated is the user changes it wi

  • Input ready query not working

    Hi Experts, This is what I did. Created a Real time cube. Put that Cube in a multicube. Created an aggregation level on the Multicube. Didn't create any filters or planning functions. Created a query on top of  aggregation level and turned on check b

  • Taskdef class oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy cannot be found

    Hi Iam getting the error on running undeploy task i.e. basically oc4j ant task. Below is the scenario & configuration explained. Please help if anyone has resolved it. Error:- jar:file:/D:/ccsaux/lib/apache/ant/1.8.0/lib/ant-oracle-classes.jar!/oracl