Query to display the exact match product at top or increase the nearness

Hello All,
I am using the iStore search and it is returning results for Part Number and Description search. If I am searching a particular Part Number , it is displaying the particular product and its related products. I need the exact matched product in the first row (topmost).
When I checked the back-end query, It is using contains for powerful search.
How can I display the exact match product at top or increase the nearness in search.
Please help.
I have seen a similar thread in the forum.
Contains: exactly match
Thanks in advance,
Muhammed Aslam
Edited by: tpmuhammedaslam on Jan 10, 2013 3:48 AM

Hello Muhammed Aslam,
If fuzzy search is enabled, then cannot search by part number.
The seeded query for iStore product search is based on the description as follows:
Product Search (Section Search - R12)
select * from
(select T.*, RowNum as row_num
from (select inv_item_id INVENTORY_ITEM_ID
,description DESCRIPTION
,0 CATEGORY_ID
,nearness NEARNESS
,concatenated_segments CONCATENATED_SEGMENTS
,primary_uom_code PRIMARY_UOM_CODE
,primary_unit_of_measure PRIMARY_UNIT_OF_MEASURE
from (SELECT * FROM (select /*+ FIRST_ROWS leading(i) INDEX (x,IBE_SECTION_SEARCH_U1) */
distinct i.inventory_item_id, i.description, 0
,x.inventory_item_id inv_item_id, score(100) nearness
,mtl_system_items_b_kfv.concatenated_segments,
mtl_system_items_b_kfv.primary_uom_code,
mtl_system_items_b_kfv.primary_unit_of_measure
from ibe_ct_imedia_search i,ibe_section_search x
,mtl_system_items_b_kfv
where contains (i.indexed_search, :1 , 100) > 0
and i.language = userenv('LANG')
and i.organization_id = :2
and i.web_status='PUBLISHED'
and x.inventory_item_id = i.inventory_item_id
and i.inventory_item_id = mtl_system_items_b_kfv.inventory_item_id
and i.organization_id = mtl_system_items_b_kfv.organization_id
and x.minisite_id = :4
and x.organization_id =:5
order by nearness desc ) WHERE rownum < :6
))T
where rownum where row_num >= :8
Product Search (Category Search - R12)
select * from
(select T.*, RowNum as row_num
from (select inventory_item_id INVENTORY_ITEM_ID
,description DESCRIPTION
,category_id CATEGORY_ID
,nearness NEARNESS
,concatenated_segments CONCATENATED_SEGMENTS
,primary_uom_code PRIMARY_UOM_CODE
,primary_unit_of_measure PRIMARY_UNIT_OF_MEASURE
from (select i.inventory_item_id, i.description, i.category_id
,score(100) nearness
,mtl_system_items_b_kfv.concatenated_segments
,mtl_system_items_b_kfv.primary_uom_code
,mtl_system_items_b_kfv.primary_unit_of_measure
from ibe_ct_imedia_search i,
mtl_system_items_b_kfv
where contains (i.indexed_search, :1 , 100) > 0
and i.language = userenv('LANG')
and i.web_status='PUBLISHED'
and i.organization_id = :3
and exists (select 1
from ibe_dsp_section_items s,ibe_dsp_msite_sct_items b
where s.section_item_id = b.section_item_id
and b.mini_site_id = :4
and s.inventory_item_id = i.inventory_item_id
and (s.end_date_active > sysdate or s.end_date_active is null)
and s.start_date_active < sysdate)
and rownum < :5
and i.inventory_item_id = mtl_system_items_b_kfv.inventory_item_id
and i.organization_id = mtl_system_items_b_kfv.organization_id
order by nearness desc ))T
where rownum where row_num >= :7
Regards,
Debbie

Similar Messages

  • I want to purchase Adobe Lightroom from the App Store but cant find the exact match.  Please help! Thanks

    I want to download Lightroom from the App Store but I can't find the exact match (I think its $149 Aus dollars).  There seems to be many other items related to Lightroom but not the one I need.
    This is the first time I'm purchasing online so I am wondering if I need to enter my credit card details to see the full range of software available?
    Your assistance would be appreciated.
    Thank you.

    No, you can view items to purchase even if you have nothing on your account at all.
    You may wish to check with the developer forums for clarificaion on finding exactly what you want.

  • Can someone please tell me the exact screen measurements (width and length) for the 13 and 15 inch macbooks?

    Can someone please tell me the exact screen measurements (width and length) for the 13 and 15 inch macbooks?
    I've got a 13 inch Air but I need to know the visible dimensions of the 15.4 macbook pro.
    Thank you

    You should be able to identify the MagSafe adapter and cord from Support page:
    •Intel-Based Apple notebooks: Identifying the right power adapter and power cord
    •Apple Portables: Troubleshooting MagSafe adapters
    Hopefully this helps. If you have a defective adapter, take it along if you happen to
    have access to an Apple Store or Authorized Apple Service Provider, to match it.
    PS: there is a MagSafe plug adapter to use one kind of MagSafe with later model
    http://eshop.macsales.com/item/Apple/MD504ZMA/
    PPS: MagSafe 85W Adapter compatible with your computer, see specs:
    http://eshop.macsales.com/item/Apple/MC556LLA/
    PPPS: Six foot AC power cable, replaces duck-head:
    http://eshop.macsales.com/item/Apple/PWRCBLMSA/
    Good luck & happy computing!
    edited 2x

  • This item could not be crawled because the repository did not respond within the specified timeout period. Try to crawl the repository at a later time, or increase the timeout value on the Proxy and Timeout page in search administration. You might also wa

    HI,
    I got the error message in the crawl log as below after performing the Full Crawl
    This item could not be crawled because the repository did not respond within the specified timeout period. Try to crawl the repository at a later time, or increase
    the timeout value on the Proxy and Timeout page in search administration. You might also want to crawl this repository during off-peak usage times.
    To overcome the above error,many forums have suggested me to increase the time out which is under Farm level settings.But if time out gets increased,performance impacts as well.
    So please suggest me to overcome this error without increasing the timeout.Thanks in advance
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi,
    I understand that you get the error message when performing a full crawl. I have seen similar cases caused by IE proxy settings. You can try to edit the Internet Options>Connections>LAN settings. Uncheck ‘Automatically detect settings’.
    For more information, please refer to this site:
    Search error: crawler could not connect to the repository:
    http://social.technet.microsoft.com/forums/en-US/sharepointadminprevious/thread/c230ab36-8d0b-4c25-bf86-33136d17642b/
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • How can I see the exact step count from previous days in the Health app?

    I know I can select the "week" or "month" tab to get a general idea of how many steps I have taken in previous days, but I can't find any way to actually get the exact number of steps logged for previous days.  Is there a way???

    Yes, you can ..
    Read Q17 here.
    http://pondini.org/TM/FAQ.html
    Strongly recommend his whole section.. 14-17 and read it carefully to understand the ways you can make TM work for you.

  • At the end of production, we want to bifurcate the material.

    Dear Expert,
      Our requirement is such that we started the production of let say grade A material. But after checking quality parameter at the end of production, we come on the conclusion that partial lot is Grade B material. Both the material is finish material, we don't want to process further for Grade B material as it is low grade.
    We take the e.g.
    Grade A material plann to produce 100 Ton
    But, at the end we get to know that Grade A is 60 Ton & Grade B is 40 Ton.
    Some details: Type of manufacturing - Repetative
                           Materials created  - Grade A & Grade B
    Please help to map above requirement.
    regards,
    Chetan

    Hi Chetan,
    There are 2 approaches to this issue; in my opinion, the best is to have one material number for both grades, but manage it with batches, and have the grade on the batch classification. This way it flows best with QM, planning, etc.
    But if you must have different material numbers for the different grades, you could have the low grade as a by or co product. It means that you put it in the BOM with a negative sign and the statistical quantity known from the past. Later on you confirm the actuals, both for the high and the low grade. In REM you just need to correct the backflush quantity for the low grade according to the actuals.
    Regards,
    Mario

  • Are PC World (UK) iMacs the exact same Spec as those bought in the Apple Store?

    I am looking to purcahse a 27" iMac Late 2013 model (Haswell).
    I have vouchers for Currys/PC World stores in the UK and want to know if the iMacs available in these stores are the same technical specs as those bought off the shelf in an Apple Store?
    I ask as some of the technical specs given in their online literature seems to differ from those described on the Apple site.
    I am looking to buy the £1,749 version but note that on the PC World website M-EO89B/A it doesn't show the processing speed to be 3.4Ghz but 3.2Ghz, which is the spec for the 'cheaper' 27". It also doesn't show the 802.11ac but 802.11n.
    However, if I am going to pay out this money then I want the best system available. So are the specs the same or is this just poorly worded descriptions on their site?
    Thank you.

    You should take it up with PC World, if possible with the store manager.   If they're promoting the ones you have seen that is one thing,  if it is standard stock, that is another.  In the case of the latter, ask if they can order to the specifications you prefer and make your order conditional on that.   And if that were possible, ask if the machine will be pre-loaded with Mavericks.

  • Can you get wireless hard drives for the new ipad as apple again havent increased the size

    someone has mentioned that you can get wireless hard dives for the ipad.....this would be beneficial as yet again apple have not increased the size of the maximum hard drive of their new "soon to be released" ipad.....thanks Lee

    The wireless "drives", which are more truly media streamers rather than true file storage, continue to be an optiono for the new iPad just as it was for the previous versions. Confirm compatibility with iOS 5.1 before purchasing, just in case the product might need an update for the new version of iOS.
    Regards.

  • HT1473 What is the "itunes Match" product for?

    I have lots of CDs to import to itunes library... would it be faster/easier to have itunes Match?

    No.
    Apple - iTunes - Match

  • SPD 2013 workflow making a REST call to Search returns no records, even though I can take the exact URL and get back records in the browser

    I am making the following REST call from a SharePoint Designer workflow:
    Site-URL/_api/search/query?querytext='WorkEmail:*zafgen.com'&rowlimit=10&startrow=0&selectproperties='LastName,FirstName,WorkEmail,JobTitle,Path,PictureUrl,PreferredName,Department,AboutMe'&SourceId='b09a7990-05ea-4af9-81ef-edfab16c4e31'
    When I make this call from a designer workflow running as the user who started it (The user is a site collection admin) I get the results shown below.  NOTE that I get ZERO records.  If I take the url above and place it in the address bar
    of any browser, I get back 10 users.  (Exactly what I asked for.)  Furthermore, if I try to put the call to a REST service in a APP Step, I get a failure return code:
    {"error":{"code":"-1, Microsoft.Office.Server.Search.REST.SearchServiceException","message":{"lang":"en-US","value":"An unknown error occurred."}}}
    I have no issues making REST calls to SharePoint Lists and Libraries, but a call to search seems to have issues.  Any thoughts?
    {"d":{"query":{"__metadata":{"type":"Microsoft.Office.Server.Search.REST.SearchResult"},"ElapsedTime":135,"PrimaryQueryResult":{"__metadata":{"type":"Microsoft.Office.Server.Search.REST.QueryResult"},"CustomResults":{"__metadata":{"type":"Collection(Microsoft.Office.Server.Search.REST.CustomResult)"},"results":[]},"QueryId":"deba5b38-d89e-46d6-9911-a4280beead31","QueryRuleId":"00000000-0000-0000-0000-000000000000","RefinementResults":null,"RelevantResults":{"__metadata":{"type":"Microsoft.Office.Server.Search.REST.RelevantResults"},"GroupTemplateId":null,"ItemTemplateId":null,"Properties":{"results":[{"__metadata":{"type":"SP.KeyValue"},"Key":"GenerationId","Value":"9223372036854775806","ValueType":"Edm.Int64"},{"__metadata":{"type":"SP.KeyValue"},"Key":"indexSystem","Value":"","ValueType":"Edm.String"},{"__metadata":{"type":"SP.KeyValue"},"Key":"ExecutionTimeMs","Value":"63","ValueType":"Edm.Int32"},{"__metadata":{"type":"SP.KeyValue"},"Key":"QueryModification","Value":"WorkEmail:*zafgen.com
    ContentClass=urn:content-class:SPSPeople","ValueType":"Edm.String"},{"__metadata":{"type":"SP.KeyValue"},"Key":"RenderTemplateId","Value":"~sitecollection\/_catalogs\/masterpage\/Display
    Templates\/Search\/Group_Default.js","ValueType":"Edm.String"},{"__metadata":{"type":"SP.KeyValue"},"Key":"StartRecord","Value":"0","ValueType":"Edm.Int32"},{"__metadata":{"type":"SP.KeyValue"},"Key":"IsFirstBlockInSubstrate","Value":"true","ValueType":"Edm.Boolean"},{"__metadata":{"type":"SP.KeyValue"},"Key":"IsLastBlockInSubstrate","Value":"true","ValueType":"Edm.Boolean"}]},"ResultTitle":null,"ResultTitleUrl":null,"RowCount":0,"Table":{"__metadata":{"type":"SP.SimpleDataTable"},"Rows":{"results":[]}},"TotalRows":0,"TotalRowsIncludingDuplicates":0},"SpecialTermResults":null},"Properties":{"results":[{"__metadata":{"type":"SP.KeyValue"},"Key":"RowLimit","Value":"10","ValueType":"Edm.Int32"},{"__metadata":{"type":"SP.KeyValue"},"Key":"SourceId","Value":"b09a7990-05ea-4af9-81ef-edfab16c4e31","ValueType":"Edm.Guid"},{"__metadata":{"type":"SP.KeyValue"},"Key":"CorrelationId","Value":"6288bf51-64fc-45de-a9ca-d62c36e3ebd1","ValueType":"Edm.Guid"},{"__metadata":{"type":"SP.KeyValue"},"Key":"WasGroupRestricted","Value":"false","ValueType":"Edm.Boolean"},{"__metadata":{"type":"SP.KeyValue"},"Key":"EnableInterleaving","Value":"true","ValueType":"Edm.Boolean"},{"__metadata":{"type":"SP.KeyValue"},"Key":"piPageImpression","Value":"16620813_415_1033","ValueType":"Edm.String"},{"__metadata":{"type":"SP.KeyValue"},"Key":"SerializedQuery","Value":"","ValueType":"Edm.String"}]},"SecondaryQueryResults":{"__metadata":{"type":"Collection(Microsoft.Office.Server.Search.REST.QueryResult)"},"results":[]},"SpellingSuggestion":null,"TriggeredRules":{"__metadata":{"type":"Collection(Edm.Guid)"},"results":[]}}}}
    Marcel Meth

    Hi,
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Where is the EXACT version number shown?  Where is the menu link to the Help file?  Why is there no scroll bar?  The new iTunes is terrible in more ways than I can list... how do I switch back to version 10?

    The newest iTunes version has no Help option.  Why?  And, no ability to find out the version number.
    The new iTunes, when in album view in Windows 7, has NO SCROLLBARS, so it is impossible to scroll the albums.  Why?
    Answer these questions, as I am an AAPL shareholder and I am NOT happy with these and other changes you've made to iTunes.

    The newest iTunes version has no Help option.  Why?  And, no ability to find out the version number.
    You may need to bring up your Menu Bar to see the Help menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Once you've got your Help menu showing, go "Help > About iTunes" and wait for the version number to scroll up from the bottom of the screen, as per the previous versions.

  • I get an "The printer could not be found." message when trying to Print Preview, but the Print... itself shows the exact printer. How can I fix the preview setting?

    This happens with all sites.

    HELP!  Is there anyone out there who knows how I can fix this????
    Thanks!

  • Can I get rid of the bright orange background on top... the transparent tabs can't be seen in front of the orange background.

    I'd like to either change the orange background or change the appearance of the tabs so that I can see them better. They are transparent right now and cannot be seen.

    Right-click on a toolbar, then click on the "Tabs on Top" entry to de-select it.
    There are other changes you can make to make it look more like Firefox 3.6, for details see http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6

  • My new ipodtouch 4.3.2 does not show the complete symbol bar at top and bottom,the whole page is shifted to one side -edges of keyboard missing so I cannot type .gadget is 1 mo old, fine till now...

    hi- my new ipodtouch -screen is hiding part of each page-so it is hard to type,as the outermost symbols of the keyboard are missing.RESTORE and RESET have not helped.what trick can I use to bring the WHOLE page into view?Zooming in-out does not help--the edge of each page is out of view...
    Any helpful advice/thanks..

    I sounds like you may have turn on the Zoom setting for accessibility.  Tap the screen with three fingers and it should go to normal.  Then go to Settings>General>Accessibility and turn Zoom off.  You can also turn it of by connecting it to your computer and going to the Summary Pane and go to Universal Access and turn Zoom off.

  • Can anyone tell me why a picture would change color when I try to download/upload it?  It is the exact same picture- chosen the same way and when it goes to any other program it changes the color (I've tried canvas on demand and mpixpro.  I've also tried

    Can anyone tell me why this picture changes color when I try to download/upload it?  It is the exact same picture I have taken from the same location.  The image on the left is via preview and the image on the right is what is shows like when I try to download it.  I have emailed it to myself and it shows fine on the computer and in CS4, but when I look at the download via my phone or on another computer it shows the wonky color on the right.  I have checked the color space shows RGB/8 bit.  Any ideas why or how to fix it?  It isn't with any one specific session.... and I've tried it on both my desktop and my laptop- saved image to an external hard drive and to drop box.  I've tried sending the image to canvas on demand, my email, mpxipro, POST editing- all the same result.  Please HELP!!  What am I doing wrong?

    Most of the time you see something like that. The image in question has a color profile other then sRGB. Some image viewers/displayers are color managed and others are not.  So the image do not look the same in all of the applications you use. So colors seem to change.
    Try converting it to sRGB color and see if then looks the same all around. Also I think PC and Mac displays are set to different gamma something like 1.8 and 2.2
    Though I'm colorblind I even see color variations.

Maybe you are looking for