Returning Count of Matching Words Rather than Score

I'm using the SCORE function that will return a number representing the relevance of the matching search result; however, what the users really want is a COUNT of the number of search results returned within the document. For a search on the word "cat" this would return the number of times the word "cat" appears in the document. Ideally, if the user searched for "(dog and cat) within sentence", the COUNT would be of the number of times both dog and cat occur within sentences in the document; however, it would be acceptable to count the number of matching words in the document individually.
Does Oracle Text have any way to return this COUNT directly within the results Oracle Text query? I can use a CTX_DOC.MARKUP call to mark the document up and the count the instances of the markup strings, but that's going to be a lot slower than if Oracle supports this out-of-the-box on the original query syntax.

Yes (in 10g onwards), you need to use a query template with <score algorithm="COUNT"/>
See here:
http://www.oracle.com/technology/products/text/x/10g_tech_overview.html#qry_cscore
Though the example there is a bit confusing since it has algorithm="SCORE" - the option for normal scoring.

Similar Messages

  • How do I upload documents (i.e Word) rather than photos when I click on 'choose existing documents'?

    When replying to an email request to update my CV, when I click on 'upload document/choose existing document', I'm only given the option to upload my photos. I want to be able to upload documents from my GDrive, without having to start a new email. Please advise. Thanks.

    File uploads from Safari are limited to contents of the Photo app at this time. You might try an alternate app such as iUploader or iCab Mobile.

  • How can I to return to the same position on a web page where I left it, rather than automatically getting returned to the top of the page?

    It's annoying to keep returning automatically to the top of a web page that I often navigate away from--eg, Google News--rather than to the position I was at when I left it. I've looking over the Firefox settings and can't find where the default can be changed.

    Try holding down the ALT key while you hit the left arrow key.
    But in some cases, the webmaster may have configured the page to load from the beginning again. There's not much you can do about that unfortunately.

  • HT204406 Is there a way to down load specific, individual songs on my iphone 5 or ipad 2, through iTunes Match, rather than having to download the entire album in the Cloud?

    Is there a way to down load specific, individual songs on my iphone 5 or ipad 2, through iTunes Match, rather than having to download the entire album in the Cloud?

    Begin by tapping on the Settings app.
    Scroll to the Store menu and tap that.
    This is where you can manage your Automatic Download settings. You can control Music, Apps, and Books (if you have the iBooks app installed) here. Slide to On any of the kinds of files you want iCloud to automatically download to your device.

  • Search for a phrase rather than a single word in speech analysis text?

    Is it possible to search for a phrase rather than a single word in speech analysis text?

    Did you try Apache POI?
    It's here:
    http://jakarta.apache.org/poi/

  • HT4913 Hi, I was trying add a second computer on iTunes Match. I was signed into both machines with a single ID which already has iTunes Match. When I selected iTunes match, it asked me to buy it again rather than add. Now I've got it on neither machine-

    Hi, I was trying add a second computer on iTunes Match.
    I was signed into iTunes on both machines with a single ID which already has iTunes Match from the primary machine. When I selected iTunes match on the second, it asked me to subscribe to it again rather than add.
    To try to fix this, I signed out of the primary machine and so i was only in the second computer.  This didnt work and when i tried to log back into Match on the primary machine it has the same problem now, asking me to buy iTunes Match when I already have it!
    Now I've got it on neither machine- can someone please help!!
    Cheers,

    wandererny wrote:
    Only one library can be matched at a time. If you continue, the other iTunes Match session will be stopped and this computer's library will be matched instead.
    Hi,
    You often get this message when match thinks that you already have a match in progess on another computer.
    If you are happy that all your music is on your new hard drive (or if it is only in the cloud), you should select "this computer".
    Jim

  • Text box - I hit return and it exits rather than starts a new line or point

    Ok so I'm a very basic user of indesign, and we are still on CS2, but can someone please help with this.   I start a new text box, and type - the wrapping works, but if I want to start a new line or do a bullet list , hitting the return key exits the text box, rather than starting a new line.  I cant find anywhere to alter the formatting.  Have tried resetting to basic paragraph format.

    This is more common on laptops than I would have imagined. If you like having the numlock on, you'll probably want to remap the numpad enter.
    Turn on numlock, then Edit > Keyboard shortcuts... Set the product areae at the top to Type Menu and scroll down to Insert Break Character: Paragraph return. Click in the new shortcut field and hit the numpad enter key, then change the context field from default to text. You'll have to save this as a new custom set and select it for use. Both enter keys should now work with numlock on or off to insert a paragraph break. You can creat a new shortcut for the column break if you like at the same time.

  • OLAP query returning "name" rather than "key" attribute for a dimension

    Hello,
    I am busy with a project that involves drawing data from an OLAP cube (in SAP BW), then transforming and contextualising for use in an EMI environment. The project runs on MII 12.1.
    The standard OLAP connector and OLAP queries have been used (would prefer not to go the route of creating a call to the OLAP XMLA web service directly). One of the important dimensions is returned as a name (descriptive text) rather than a key (the cost element code itself), preventing us from reliably applying business rules to classify cost elements. Categorising cost elements based on their text descriptions is not a sustainable solution.
    The output needs to allow for two dimensions (cost element and an equipment identifier) against which individual cost values will be listed. It appears that the two dimensions must both be on the "x-axis", as result columns are automatically renamed, e.g. C000001, C000002, etc. If anyone knows of a way to suppress this renaming behaviour, please let me know.
    Is it possible to force the "key" attribute to be returned instead of the "name" attribute? I have identified two preferred options:
    1. MDX syntax of the query itself
    2. configuration of the OLAP connector
    I have not found a way to do this through MDX syntax, but would welcome any suggestions.
    Alternatively, perhaps there is a non-standard way of configuring the OLAP connector so that the key rather than the name attribute is returned for all dimensions. Has anyone anything, e.g. chosen a non-standard ColumnNameAttribute or DataTypeAttribute, in this regard?
    Thanks,
    Marc Chaplin

    <b>Apologies for the formatting above</b>
    Part 1:
    Hello,
    I am busy with a project that involves drawing data from an OLAP cube (in SAP BW), then transforming and contextualising for use in an EMI environment. The project runs on MII 12.1.
    The standard OLAP connector and OLAP queries have been used (would prefer not to go the route of creating a call to the OLAP XMLA web service directly). One of the important dimensions is returned as a name (descriptive text) rather than a key (the cost element code itself), preventing us from reliably applying business rules to classify cost elements. Categorising cost elements based on their text descriptions is not a sustainable solution.
    The output needs to allow for two dimensions (cost element and an equipment identifier) against which individual cost values will be listed. It appears that the two dimensions must both be on the <i>x-axis</i>, as result columns are automatically renamed, e.g. C000001, C000002, etc. If anyone knows of a way to suppress this renaming behaviour, please let me know.

  • How to specify application by extension rather than mime type (e.g., docx as word, not xml)

    When I try to open a link to a file.docx or file.xlsx, FF sees it as an xml file and wants to open it in my default xml application. I can select Word or Excel (I have Office 2010 installed), but a) it doesn't remember that in the applications list, so I have to browse applications each time, or b) if I set it to always use that type, it tries to open docx in Excel or xlsx in Word, depending on last usage. How can I specify applications by file extension instead of seeing these as the same type of file?
    Thanks,
    Ian
    FF 15.0.1, Win 7, Office 2010

    I don't know if the source server sends the right mime type - it probably doesn't. In fact, now you mention it, I'm not sure I've tried this from any sites except one, which is the one giving me problems. I'll try contacting them about fixing their mime types. Assuming though that they can't or won't fix it, the question still remains - is it possible to set application by extension rather than by mime type?
    Yeah, I can definitely save it and open it, just trying to take the easiest possible route for a quick view.
    Thanks.

  • New Document button to create/open document in Office Web Apps rather than through Template.doc in client's MS Word

    Greetings all,
    We have a particular campus with exceptionally limited access on their machines -- essentially, they can browse the web (access our Intranet) but not write information to drives or update their MS Word to read the new DocX format (or install plugins, etc,
    to do so).
    The new Web Apps seems to provide some potential for alleviating their issue -- but ideally, they would be able to originate (create) new documents right in Sharepoint by clicking on New -> Document and having the new document open in Office Web Apps
    rather than downloading / creating through Template.Doc (standard method in Sharepoint).
    Any ideas about how to make this kind of functionality happen?
    THanks!
    ---Dave

    When you mention "web apps" I assume you're referring to the new "Office web apps" in SharePoint 2010, so I'm not sure why this question is in a pre-sharepoint 2010 forum...  My answer entails how to go about doing this in 2010 only.
    In the document library's settings, go to advanced settings, and choose for the files to be forced to be opened in the browser, instead of the client software. 
    By default, you're only going to have a new word document for your "new" button.  You'll need to create content types for all the other document types you want them to be able to create.  So create a blank spreadsheet, and save it on your desktop,
    and create a blank powerpoint too. 
    Then create new content types at the top level of the site collection.  One called Excel Template, and one called PowerPoint template.  For each content type, click on the advanced settings and upload that blank file that you created. 
    In your document library, go to the library's advanced settings and change "allow mgmt of content types" to YES.  Then, in the content types section add those 2 new content types you created. 
    Now, when people click the "new" drop-down, they will have choices of a word document, excel and powerpoint, and they will open in the browser.
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura
    Beginning SharePoint 2010: Building Business Solutions with SharePoint

  • Delivery Related Billing rather than Order Related Billing in Return Sales

    Hi
    There is a requirement from the client that the Returns Invoice (RE) generated must be related to LR Delivery Type rather than Return Sales Order Type(RE).
    I have maintained the Copy Control from LR (Returns Delivery Type) to RE(Returns Invoice Type).
    Then Changed the billing relevance of REN (Item Category ) from - 'B' Relevant for order-related billing - status acc.to order qty
    to A     Delivery-related billing document.
    When i create the Returns Invoice, it is allowing me to create the Invoice even before the Post Goods Receipt of the LR Returns Delivery Document.
    It should allow me to create the invoice only after Post Goods Receipt.
    Can any one share their inputs.
    Regards
    Mohan

    Dear Kandy Sreekanth ,
    PLEASE READ THR RULES OF ENGAGEMENT BEFORE REPLYING TO POSTS / POSTING ISSUES
    Do not ask for points - This forum should be firstly about information exchange; points are an incentive and a way of saying thanks.
    Asking for points is like asking someone to say "thank you": The only time we do this in real life is when teaching a child good manners. Saying it to an adult is insulting, so why do it in the forums? If someone keeps asking questions without awarding points, simply stop answering them or use the abuse button to report it.
    Thanks & Regards,
    Hegal K Charles

  • Double clicking brings up selection box rather than highlighting words

    This is a bit of a trivial problem but it's making my editing quite difficult. I'm using Acrobat X 10, with Windows 7.
    Normally when I double click on some text, the word that I am double clicking on will become highlighted. This continues to be the case except for in one specific pdf document: now double clicking opens a selection box rather than highlighting text. If I single click I can highlight whatever text I want, but double clicking no longer highlight a particular word. This is very incumbersome for my annotating/highlighting technique. It only happens with this one pdf, any other pdf and the selection tool is back to normal.
    Any idea why this is happening for this one particular pdf, but none of the others, or any way that I can make it highlight words via double clicking again?
    Edit: On further inspection, the problem seems to be that for this particular document, acrobat reader cannot detect specifc words, only individual characters. When I highlight a sentence, normally the text highlighted would naturally jump to the end of the word, but here it will only start/stop where I begin and end dragging the cursor. I have used the Recognise Text tool, but this did not fix the problem as it said it had already recognised the text throughout the document.             

    Can you use the "Prompt" section of the Property Palette instead and leave Label as null. Prompts can be aligned to the left, but, without trying it in Forms 4.5, am unsure about your highlight issue.

  • Count occurrences of matched words

    All,
    Does anyone know the syntax or algorithm to count the occurrences of matched words that where compared from two separate columns or tables? Below is a simple example of the type of comparison I would like to perform. I found the function regexp_count, but it only works in 11g. Unfortunately, I have Oracle 10g. Any help would be greatly appreciated. Thanks
    i.e.
    drop table compare_matched_words;
    create table compare_matched_words (
    query_id number,
    query_string1 varchar2(80),
    query_string2 varchar2(80)
    insert into compare_matched_words values (1, 'oracle 255','oracle1 255');
    insert into compare_matched_words values (2, 'larry or ellison','larry or');
    insert into compare_matched_words values (3, 'oracle and text','and');
    insert into compare_matched_words values (4, 'market1 share','market share');
    insert into compare_matched_words values (5, 'larry or',' larry or ellison');
    insert into compare_matched_words values (6, 'oracle1 255','oracle 255');

    Issue is not in 11g. Before you can solve the task you need to split QUERY_STRING1 and QUERY_STRING2 into words and then compare words for same QUERY_ID. To split string into words use something like:
    select  query_id,
            regexp_substr(query_string1,'\w+',1,column_value) query_string1_word
      from  compare_matched_words t,
            table(
                  cast(
                       multiset(
                                select  level
                                  from  dual
                                  connect by level <= length(regexp_replace(regexp_replace(QUERY_STRING1,'\w+','A'),'[^A]'))
                               ) as sys.OdciNumberList
    SQL> /
               QUERY_ID QUERY_STRING1_WORD
                      1 oracle
                      1 255
                      2 larry
                      2 or
                      2 ellison
                      3 oracle
                      3 and
                      3 text
                      4 market1
                      4 share
                      5 larry
               QUERY_ID QUERY_STRING1_WORD
                      5 or
                      6 oracle1
                      6 255
    14 rows selected.
    SQL> Now:
    select  t1.query_id,
            t1.query_string1,
            t2.query_string2,
            count(*) matchin_word_count
      from  (
             select  query_id,
                     query_string1,
                     regexp_substr(query_string1,'\w+',1,column_value) query_string1_word
               from  compare_matched_words t,
                     table(
                           cast(
                                multiset(
                                         select  level
                                            from  dual
                                           connect by level <= length(regexp_replace(regexp_replace(query_string1,'\w+','A'),'[^A]'))
                                        ) as sys.OdciNumberList
            ) t1,
             select  query_id,
                     query_string2,
                     regexp_substr(query_string2,'\w+',1,column_value) query_string2_word
               from  compare_matched_words t,
                     table(
                           cast(
                                multiset(
                                         select  level
                                            from  dual
                                           connect by level <= length(regexp_replace(regexp_replace(query_string2,'\w+','A'),'[^A]'))
                                        ) as sys.OdciNumberList
            ) t2
      where t2.query_id = t1.query_id
        and t2.query_string2_word = t1.query_string1_word
      group by t1.query_id,
               t1.query_string1,
               t2.query_string2
      order by t1.query_id
               QUERY_ID QUERY_STRING1                  QUERY_STRING2                   MATCHIN_WORD_COUNT
                      1 oracle 255                     oracle1 255                                      1
                      2 larry or ellison               larry or                                         2
                      3 oracle and text                and                                              1
                      4 market1 share                  market share                                     1
                      5 larry or                        larry or ellison                                2
                      6 oracle1 255                    oracle 255                                       1
    6 rows selected.
    SQL> SY.

  • HT1657 Can I watch my rented movie for just 24 hours? What about the 30 days? The countdown on my library returned in days countdown rather than hours. Can anyone clarify me about this?

    Can I watch my rented movie for just 24 hours? What about the 30 days? The countdown on my library returned in days countdown rather than hours. Can anyone clarify me about this?

    Read the article you linked
    iTunes Store: Movie rental frequently asked questions (FAQ)
    How long do I have to watch a rented movie?
    You have 30 days from the time of rental to watch your movie, and 24 hours (in the US) or 48 hours (elsewhere) after you've started viewing to finish it. Once the rental period expires, the movie will disappear from your iTunes library."

  • AMOUNT IN WORDS TO BE DISPLAYED IN LACS RATHER THAN IN MILLI

    Hello Experts,
    I want to display "Amount in Words" in lacs rather than in million in PLD of an A/R Invoice . How can i do this
    Thanks in advance

    hi Divya,
    You need to create functions in SQl and apply FMS to get values from function in UDF and pick UDF value on pld.
    Check Amount in words thread for functions.
    Thanks,

Maybe you are looking for

  • Problem in using new InitialContext when running client application

    Hi All, We are having a web application which runs on weblogic server 6.1. We are loading a servelet at startup which will load the application specific properties file and bind it with the context. In one of the classes in the .ear file we are looki

  • Having same Unit

    I am using BI Content InfoObject 0BBP_PRCUNT (Price Unit) and 0TARG_QTY (Target QTY) in the same InfoCube. Noticed that both these InfoObjects have Unit 0PO_UNIT (Order Unit) assigned to it. I am not sure if there will be any problem later when it co

  • Error    -   new tab in mm01

    hi friends, i am trying to add new view in mm01/mm02/mm03. using spro create a function group . after create a screen(in se80). i write the code underPBO(in new include) MODULE disable_field OUTPUT if sy-tcode = 'mm03'.   LOOP AT SCREEN.     screen-i

  • Windows XP VM shuts down randomly (also Server 2003 VM)

    Running VMware Server v1.0.7  on Fedora 8 Host The VM shuts down at random times, normally during the evening. vmware.log for the guest shows:Feb 08 13:51:14: vmx| ASSERT /build/mts/release/bora-108231/pompeii2005/bora/lib/left/pollLeft.c:1412 bugNr=

  • Material Tracking in Rental Business

    Hi Experts, How we handle materials used in Rental business. Scenario :- My customer is in Construction industry, he procures material / equipment in bulk. Then he rent it out. All these Materials / Equipments will be my Customers own stock, but in h