C ldap_search_ext_s search query problem

I have an application developed in C++ that uses the Novell C LDAP SDK.
If I use a search query to the ldap_search_ext_s function of the form
Code:
(&(objectClass=inetOrgPerson)(%s=%s))
it works when I substitute the first %s with 'cn' and the second with a
valid username.
If I modify the query to:
Code:
(&(|(objectClass=inetOrgPerson)(objectClass=aliasO bject))(%s=%s))
it no longer works. I want to find user objects and user alias objects
that match a username. I am substituting 'cn' and a valid username as
before.
This query works with the ldapsearch command from the OpenLDAP tools on
a Linux installation. According to page 39 of ldaplibc.pdf it should
work with this SDK as well. The example there is:
Code:
(&(objectClass=inetOrgPerson) (| (sn=Smith) (cn=Chris S*) ) )
To me that's the same format as my own search filter, albeit ordered
differently. I have tried using this query string and replacing the
parts to make it identical functionally to my query.
Each time I call ldap_search_ext_s it returns 4. The documentation says
a return code of 4 is 'LDAP_SIZELIMIT_EXCEEDED: Indicates that in a
search operation, the size limit specified by the client or the server
has been exceeded. Incomplete results are returned.'
This implies too many results are being returned, but I have checked
and the final query used in the function is:
Code:
(&(cn=user1) (| (objectClass=inetOrgPerson) (objectClass=aliasObject) ) )
Any idea what I'm doing wrong?
mattross
mattross's Profile: http://forums.novell.com/member.php?userid=30003
View this thread: http://forums.novell.com/showthread.php?t=394151

Oops I'm sorry to say I've already worked out what I was doing wrong! I
had a limit of 1 search result being returned by the function.
Previously when I was just looking for users by
objectClass=inetOrgPerson that was sufficient, but with aliases included
as well it was not.
Please disregard this thread.
mattross
mattross's Profile: http://forums.novell.com/member.php?userid=30003
View this thread: http://forums.novell.com/showthread.php?t=394151

Similar Messages

  • Search query problem

    SQL> select prod from prod where prod like '%chromium ore%'
      2  /
    PROD
    chromium ore andconcentrates, ferro-chrome, silico-chrome
    chromium ore andconcentrates, ferro-chrome, silica-chrome, metal
    chromium ore andconcentrates, ferro-chrome, silica-chrome
    chromium ore andconcentrates, ferro-chrome, silico-chrome
    chromium ore andconcentrates, ferro-chrome, silico-chrome, metal
    chromium ore andconcentrates, ferro-chrome, silico-chrome
    6 rows selected.
    SQL> select prod from prod where prod like '%what is chromium ore%';
    no rows selected
    SQL> select count(unique(co_id)) from prod where (prod like upper('%ferro%') or prod like lower('%ferro%') or prod like initcap('%ferro%'));
    COUNT(UNIQUE(CO_ID))
                    3153
    SQL> select count(unique(co_id)) from prod where (prod like upper('%What is ferro') or prod like lower('%What is ferro') or prod like initcap('%What is ferro'));
    COUNT(UNIQUE(CO_ID))
                    0
    SQL> select count(unique(co_id)) from prod where (prod like upper('%What is ferro%') or prod like lower('%What is ferro%') or prod like initcap('%What is ferro%'));
    COUNT(UNIQUE(CO_ID))
                    0I want to search any of the matching word with existing record(s) but unable to write accurate query
    Please help me
    Thanks & best regards

    >
    Is ranking possible in displaying records i.e. How can I display that have mostly used keyword 'Paris' or 'where is paris'. e.g.
    >
    something like this,
    SQL> Select * From Test;
            ID TEXT
             1 <HTML>Paris is a city of France</HTML>
             2 <HTML>Canada don´t have Paris City</HTML>
             3 <HTML>Hotel France Eiffel in Paris</HTML>
             4 <HTML>Paris! Unforgettable Paris, Wonderful Paris</HTML>
             5 <HTML>Visitors to Paris not forget Paris memories</HTML>
             6 <HTML>China is located on the continent of Asia</HTML>
    6 rows selected
    SQL> With Tab As(Select Id
      2                   , Text
      3                   , Regexp_substr( Text,Replace(Regexp_Replace('Where is Paris', ' is| ', '|'),'||','|')
      4                                  , 1
      5                                  , 1 ) word
      6                from Test
      7               where Regexp_Like( Text
      8                                , '([' || Replace('Where is Paris', ' ', '|') || ']\is)')
      9             )
    10  Select Id
    11       , Text
    12       , (Length(Text) - Length(REPLACE(Text, Word, NULL))) / Length(Word) Occurrence
    13    from Tab
    14   Order By Occurrence Desc;
            ID TEXT                                                                             OCCURRENCE
             4 <HTML>Paris! Unforgettable Paris, Wonderful Paris</HTML>                                  3
             5 <HTML>Visitors to Paris not forget Paris memories</HTML>                                  2
             2 <HTML>Canada don´t have Paris City</HTML>                                                 1
             1 <HTML>Paris is a city of France</HTML>                                                    1
             3 <HTML>Hotel France Eiffel in Paris</HTML>                                                 1Can I highlighting the searched keywords?
    >
    you must treat the result in your application
    Regards,
    Christian Balz

  • Need help in building search query

    Guys ..
    Problem Description:
    I have a huge table that is indexed using CONTEXT.
    I want to write a search query that considers the following:
    1. number of keywords match
    2. takes care of spelling mistakes, synonyms and acronyms
    3. proximity - the keywords should not be too far of each other.
    e.g. I have this phrase: "Horizontal Stabilizer Trim Brake"
    I was thinking of writing a query like:
    SELECT SCORE(1) SCORE,
    TEXT text
    FROM MY_TABLE
    WHERE CONTAINS(TEXT, '(Horz | Horizontal) ACCUM (Stab | Stabilier) ACCUM Trim ACCUM (Brk | Break)', 1) >= 0
    ORDER BY SCORE DESC
    The results doesnt look satisfactory. I have not used "near" operator as i dont know how to use it.
    Please help me as I am very much new to Oracle Text.
    -G

    Well, I'm not going to write the function for you, but we can at least talk through a general strategy.
    A lot depends on how you help your users on the front end -- for example, if they're searching a technical document, you may want to return results that aren't perfect matches but you do want to make sure the user picks 'mandatory' and 'useful' keywords in a way that lets you figure out which ones are really important. On the other hand, if you're google and have to handle queries like 'horizontal stabilizer trim brake' and 'were Pete and Jenny in the break room' then you run the risk of spending too much time looking for interesting words, almost doing a full-text search on the query trying to derive meaning.
    So I'm going to presume that you have some control over what/how the users generate their searches so that finding keywords isn't the issue.
    The plan will be to parse the query a bit to find the interesting words, clean them up, and weigh their importance, then use transformed data to build the query template to score various combinations.
    So here's some pseudocode for the function:
    function parse_query(pQueryWords in clob) returns clob as
    begin
        generate_token_list (); -- split the query into a set of individual tokens/words
        for each token in token_list
            if it's a mandatory word then accumtokenlist := accumtokenlist || ' ' || token ||'*10' -- weigh the presence of the token strongly
            if it's a useful word then accumtokenlist := accumtokenlist || ' ' || token ||'*5' -- domain-specific words are also important
            if it's a stopword or reserved word, then do not add it to the list
            if it's not on my lists, then accumtokenlist := accumtokenlist || ' ' || token
                                         and normaltokenlist := normaltokenlist ||' ' || token
        end;
        --so now, we have two lists, one for NEAR and one for ACCUM
        now build the guts of the template
            querytemplate := querytemplate || '<seq> || normaltokenlist || '</seq>';
            querytemplate := querytemplate || '<seq> || replace (accumtokenlist, ' ',' ACCUM ') || '</seq>';
            querytemplate := querytemplate || '<seq>$' || replace(normaltokenlist,' ','$') || '</seq>';
            querytemplate := querytemplate || '<seq>? || replace(replace(accumtokenlist,' ',' ?'),' ', ' accum ') || </seq>';  -- first fuzzy the words, then accum
            querytemplate := querytemplate || '<seq>? || replace(replace(normaltokenlist,' ',' ?'),' ', ' near ') || </seq>';  -- first fuzzy the words, then near
        return querytemplate
    end;So, with a 'cooked' query text that is template-friendly, all we need to do is apply a template that is aware of your inputs:
    query_Template_string := '
    <query>
       <textquery lang="ENGLISH" grammar="CONTEXT"> horizontal stabilizer*5 trim brake*10
         <progression> '
    || parse_query('horizontal stabilizer trim brake')  ||
    '     </progression>
       </textquery>
      <score datatype="INTEGER" algorithm="COUNT"/>'
    </query>So that's an example of one approach.

  • "Your server is not configured properly or your search query has ..."

    Config info:
    v490, 20k+users, JES 2005Q1,
    118540-23
    118207-42
    115614-20
    Brief Description:
    When users select the Corporate Directory under the Address Book tab in CE and click the ALL button (or do a wildcard search) they get the following error:
    "Your server is not configured properly or your search query has
    exceeded the limit. Please check server configuration."
    Additional info:
    Additionally this error shows up when a user chooses a View: letter and clicks next for the following page, and additionally if they have the Corporate Directory set as their default address book in options.
    Logs:
    /sun1/dirserv/slapd-mail/logs/errors:
    [11/Oct/2005:10:44:21 -0500] - WARNING<20805> - Backend Database - conn=161557 op=34 msgId=169 - search is not indexed
    /sun1/dirserv/slapd-mail/logs/access:
    [11/Oct/2005:10:23:21 -0500] conn=161557 op=17 msgId=124 - SRCH base="o=ualr.edu,dc=mail,dc=ualr,dc=edu" scope=2
    filter="(&(&(cn=*)(|(objectClass=INETORGPERSON)(objectClass=GROUPOFUNIQUENAMES)))(objectClass=*))"
    attrs="objectClass"
    [11/Oct/2005:10:23:31 -0500] conn=161557 op=17 msgId=124 - RESULT err=0 tag=101 nentries=20540 etime=10 notes=U
    /var/sun1/comexp/logs/uwc.log:
    Oct 11, 2005 10:52:20 AM com.sun.uwc.abclient.ABInitFilter doFilter WARNING: Address Book session already set!!
    changes in /var/sun1/comexp/WEB-INF/config/corp-dir/db_config.properties
    lookthru_limit=30000
    I have a ticket, just wondering if anyone else has this problem...

    You'll be getting this in your case update (answer in response to the internal conversation we've been having about your issue)
    So if they really want to control wildcard searches then they should look in the "personalstore.properties" file for the domain (default: /var/opt/SUNWuwc/WEB-INF/domain/personalstore.properties) for the value of "db.idir.wildcardsearch". Its possible settings are documented in the comments. If they wish to disable all "*" and "*x*" searches (i.e. turn off the 'All' and selecting a letter options) they should set the value to at least 2.

  • Why is does the search query box collapse in  Acrobat CS4

    In the last few weeks or so, when  I try searching for text in a pdf document in Acrobat CS4  the usual search query box that is supposed to pop up is "collapsed" - see the attached diagram. (In css language it looks like a collpased dv tag) There is no place to enter text and a strange drop shadow effect emerges? Has anyone else experienced this problem? Have any suggestions about how to resolve it?
    Thanks
    John

    OK I solved my own problem by removing the acrobat preference file and restarting Acrobat. I should have thought of a corrupt preference file before I asked
    cheers
    john

  • Search query not able to find node under a specific site structure (eg. 2013/05)?

    Hi,
        We are saving our data on a node under year/month site structure, eg. (2013/05/node1) but when we search for the data using a query in a custom workflow., it does not fetch any results.The query being fired is something like :
       SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/content/hm/NewsroomSection/en/NewsRoom/NewsroomDetails/2013/05/node1]) .
       On trying to run this query directly in crxde, it shows no result. But when we change the site structure to 2013/5/node1, it is able to fetch results.
       I am not sure if the problem is because of the '0' digit in the month in site structure (2013/05).
       Please provide your input if any of you have come across something like this before ..
    Thanks
    Abhishek

    Hi Abhishek,
    In case of nodes with numbers, any node starting with 0, this 0 gets omitted in the search query.
    So, if your node name is like 02013 for year, when it searches it omits 0 and searches for 2013.
    In case you want to search for your node, your SQL2 query should be like below:
    SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE(['/content/mysite/en/products/2013/05'])
    See screenshot for reference. This should return you the results.
    Hope this helps.
    I guess for more reference on SQL2 queries, you can refer to JCR 2.0 spec.
    http://www.day.com/specs/jcr/2.0/6_Query.html
    Also, you might want to look at the railroad diagrams and some examples from Jackrabbit's test cases:
    http://www.h2database.com/jcr/grammar.html
    http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/test/resources/or g/apache/jackrabbit/spi/commons/query/sql2/test.sql2.txt?view=markup
    Hope this helps.

  • String Search Query in any columns in any table in a database

    Hi All,
    I am trying to search a word which starts with 'FRA' in any columns and any tables.
    I am unable tofind what is generating a join datasets in the webservice from teh database as it is not apparent within teh 100 tables.
    I ahve looked into
    Re: How to search in all rows and all columns?
    Re: SQL Search Query - HELP!
    but none of these queries is working out for me as I am a user with no tables on its own but rather a user quering other tables.I think its a tweak on which dat adisctionary I can view
    select distinct substr (table_name, 1, 14) "Table",
    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
    from all_cons_columns,
    table
    (xmlsequence
    (dbms_xmlgen.getxmltype ('select ' || column_name
    || ' from ' || table_name
    || ' where upper('
    || column_name
    || ') like upper(''%' || 'fra'
    || '%'')'
    ).extract ('ROWSET/ROW/*')
    ) t
    order by "Table";
    running teh above query got me thsi error:
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 - "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problem
    Any help is much appreciated
    Edited by: CrackerJack on Sep 3, 2012 5:55 PM
    Edited by: CrackerJack on Sep 3, 2012 5:55 PM

    Hi,
    CrackerJack wrote:
    Hi All,
    I am trying to search a word which starts with 'FRA' in any columns and any tables.
    I am unable tofind what is generating a join datasets in the webservice from teh database as it is not apparent within teh 100 tables.
    I ahve looked into
    Re: How to search in all rows and all columns?
    Re: SQL Search Query - HELP!
    but none of these queries is working out for me as I am a user with no tables on its own but rather a user quering other tables.I think its a tweak on which dat adisctionary I can view In all_<b>cons</b>_columns, "cons" stands for "constraints". That view only includes columns that have a constraint on them. 
    Use all_<b>tab</b>_columns if you're interested in all columns in all tables.
    select distinct substr (table_name, 1, 14) "Table",
    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
    from all_cons_columns,
    table
    (xmlsequence
    (dbms_xmlgen.getxmltype ('select ' || column_name
    || ' from ' || table_name
    || ' where upper('
    || column_name
    || ') like upper(''%' || 'fra'
    || '%'')'
    ).extract ('ROWSET/ROW/*')
    ) t
    order by "Table";You may have noticed that this site noramlly compresses whitespace.
    Whenever you post formatted text (such as query results) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    When referencing a table in a differenct schema, you must qualify the table name with the owner (unless there happens to be a synonym).  For example, if you are connected as some user other than scott, and you want to use the emp table that is in the scott schema; then you can't just say "SELECT ... FROM emp;", because that would look for the emp table in yur own schema.  You have to say "SELECT ... FROM <b>scott.</b>emp;" instead.  If the table is in your own schema, then the scema name is optional.  The OWNER column in all_tab_columns gives the schema name.
    running teh above query got me thsi error:
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 - "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problemSorry, I don't know what causes that error.
    If I use the data dictionary view cols (as in {message:id=3325696} which you cited), it runs correctly.
    If use what I though was the equivalent data dictionary view, user_tab_columns, or if I use all_tab_columns or other data dictionary views, then I get those errors.  I'm using Oracle 10.2.0.1.0.
    Edited by: Frank Kulash on Sep 3, 2012 10:45 PM
    John Spencer noticed the same problem 5 years ago.  See {message:id=1969268}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • MySQL: Occurrences in search query

    In this example search query, how would I order the
    submissions by the number of occurrences?
    For example, a submission that includes 'red' twice and
    'dragon' once would come before a submission that only includes
    each word once.

    This website explains an interesting way of finding how many
    times a keyword occurs using just MySQL:
    http://r937.com/keyword_relevance.html
    This site explains how to get a relevence factor in several
    different ways, but the only one I am interested in right now is
    the one labeled "occ":
    ( length(Description)
    - length(replace(Description,'games','')) )
    / length('games') as occ
    The problem is that the site only explains how to find the
    occurennces of a single keyword, rather than multiple keywords.
    I am not sure if an array in the replace function would be
    possible, but otherwise I was thinking I could just use PHP to
    repeat that code in the SELECT clause for each keyword, similar to
    how the keywords are repeated in the WHERE clause.
    Let me know if you have a more efficient idea.

  • Search Query Web Part thumbnail image link broken

    Hello,
    I have 4 farms spread across the world and I want to pull news from Farm 1 (headquarters) into farm 2, 3, and 4. In SharePoint 2007 I did this with content deployment by pushing only the news site out to the other 3 farms.  However, from
    reading content deployment guidelines in SP13 I feel this is no longer a supported configuration.
    I am trying to use the search query web part to accomplish this now.  I have a search query web part that I am using to roll up articles from SharePoint at farm 1.  So far it is mostly working, the articles are pulled in and I can see
    them.  When I click the link it takes me from the current farm (farm 2) to farm 1 to read the article.  The only problem I am having is that the rollup image does not display at farm 2, 3, or 4.  I believe this is happening because the image
    URL at the source is getting saved as a relative URL.  Even if I try to override the relative URL to the image with an absolute URL then it just forces the URL back to a relative URL because clearly SharePoint is smarter than I am and there is no reason
    I should ever want an absolute URL.
    I should add that to get this working, in my search settings, I had to configure an extra content source (to farm 1).
    So my question is what is the best way to handle this?  Is there an option in my search configurations on farm 2 to override URL's for a particular content source?  Am I even headed down the right path trying to do this with the content search
    web part?
    Thanks,

    Hi Tom,
    I have been trying to figure out what you mean when you say I am using 'Page item' instead of 'Picture'.  I don't understand what you mean.
    When I set up a page that will be published I have actually been using an 'Article Page' content type for the news item I want to share on all of the farms.  After creating the page there is a section at the bottom for a 'Rollup Image'  I specify
    the URL in this rollup image but the actual image is stored in an 'Assets' Library.  I have no problem with the article page itself showing up on Farm 2, just not the image.  The "Rollup Image" data type is Publishing Image - "Rollup
    Image is a site column created by the Publishing feature. It is used on the Page Content Type as the image for the page shown in content roll-ups such as the Content By Search web part." 
    Question 1: Are you saying that I need to somehow replace that rollup image field with a custom site column field?
    Question 2: If I set up a new column then do I need to worry about connecting catalogs?
    In your post from December 9th it sounded like you had this working in your test environment. 
    Question 3: Did you have it working using a different configuration there? 
    Question 4: If so, did it require having a separate web application just for Assets, or were you using a custom site column there?
    In Farm 2, after I connected my catalog from Farm 1, I found that a Pages library at the top level of my site collection contained some strange entries. I have files in that library called
    CatalogItem--1684387697
    CatalogItem-364050575
    Category-
    Category-1211-4576
    The first CatalogItem gives me an error "Sorry, something went wrong".  The rest seem to contain images from Farm 1.  However, news articles still are not finding those images.  I suppose that is because the 'Rollup image' link is
    still pointing to a different path than that connected catalog.  Anyway, those items were checked out to me and were not published.  I checked them in and published those Category/CatalogItem connections hoping that would work, but
    that didn't help either.  
    When I set up my catalog in farm 1 I only checked 'Enable this library as a catalog'.  None of the other fields seemed to apply since I am not publishing to a public site (Anonymous access) and also since I am not trying to tie identifiers to catalog
    items (Catalog Item URL fields).  Additionally when I connected to my catalog I tried "<label for="ctl00_PlaceHolderMain_connectionTypeSection_fullConnection">Integrate the catalog into my site" with the setting "</label><label
    for="ctl00_PlaceHolderMain_rewriteDecisionSection_noURLRewriteRadioButton">Make URLs point to source catalog".  I also tried "</label><label for="ctl00_PlaceHolderMain_connectionTypeSection_manualConnection">Connect,
    but do not integrate the catalog".  Both of those settings sounded like they might force catalog items to look to the source (Farm 1).  Neither worked.  There are a lot of other settings but none of them seem to apply to my situation. 
    I'm not trying to configure Navigation Hierarchy, Category Pages, or Item Pages.  Maybe I need to do something with "Catalog Item URL Format", but I'm not sure what settings I should try.</label>
    Questions 5,6: Do you have recommendations for my catalog/catalog connections to get this working?  Obviously my current configuration is not right or else it would work, but am I even close?

  • PCUI Saved Search query Producing dump

    Hi Floks,
    We have Un Expected issue with PCUI Saved Search Query which were saved before support pack Implementation.
    Now when we select the old Saved Queries (saved Query before support pack Implementation) producing short Dump . Please find  the below Error Message
    Business Server Page (BSP) Error
    What happened?
    Call of BSP page terminated due to error.
    Note
    Following error text processed in system:
    An exception with the type CX_SY_IMPORT_MISMATCH_ERROR occurred, but was neither handled locally, nor declared in a RAISING clause
    Exception Class CX_SY_IMPORT_MISMATCH_ERROR
    Error name CONNE_IMPORT_WRONG_STRUCTURE
    Program CL_CRM_BSP_FRAME_SREQ=========CP
    Include CL_CRM_BSP_FRAME_SREQ=========CM00B
    ABAP Class CL_CRM_BSP_FRAME_SREQ
    Method DO_ONSHOWLIST
    Row 202 
    Long Text -
    Error Type: Exception
    Your SAP Business Server Pages Team
    If we Create a New Query with same parameter values , query working pretty good..
    Quick response will be appreciated
    Regards
    Raju..

    Hi Adil Imran
    Thanks for the update,
    Problem was resolved by self ...By developing new program to delete the Default Queries in the Search Option
    Regards
    Raju

  • Set a field label by conditions, in a Search Query

    Dear all ADF buddies,
    Can I set a field label by conditions? Say: if UserRole=A then Label = A; else Label = B;
    The problem is those field labels are not attribute of JSP, they are inside a Search Query. Thus the label text are defined in the table EO, which I cant find any place in JDeveloper to set custom expression.
    Any one know how?
    =)
    James Fan

    Hi Frank, thank you for replying.
    Tried to amend the ViewRowImpl.java and added those related functions. It didn't get called while rendering the Search Query fields, but only after.
    Any way to do this on the EO side? I think it s more likely that the Search Query dialog is reading label value directly from the EO
    I found there are AttributeDefImpl or AttributeHints in the EntityImpl.java. Are there examples to show how to override these classes?
    James
    Edited by: 1003858 on 2013年5月6日 上午2:34

  • What assembly is the class Microsoft.Office.Server.Search.Query.Pipeline.Processing.OpenSearchReaderProducer in?

    Hi All,
    I work with Result Source in SP 2013 which is configured to use OpenSearch protocol. When I create KeywordQuery and execute the query with SearchExecutor the below error is thrown and log at ULS
    Microsoft.Office.Server.Search.Query.Pipeline.Processing.OpenSearchReaderProducer : Unable to complete OpenSearch communication. System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.Search.Query.Pipeline.Processing.OpenSearchReaderProducer.ReadAccountAuthCredentials(AuthenticationInformation
    authInfo, String& username, String& password)
    This code does work on certain farm setting, but for a particular setting like
    + Search Admin, Crawler, Content Processing, Analytics Processing is on 1 server
    + Query Processing, Index Partition is on 1 server
    I've tried to find the assembly which has class OpenSearchReaderProducer to decompile and see what could causing null exception but I cannot find that assembly, does anyone know where it is or could suggest a better solution for above issue?
    Appreciate all the comments
    Thank you
    Steven

    Hi Steven,
    According to your description, my understanding is that you got an error when you tried to use Result Source in SharePoint 2013.
    You can set it to anonymous search, then check whether it works.
    Here is a similar post for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/26fe7715-e4b3-404a-bcb7-6f6f3ff1ea62/opensearch-search-has-encountered-a-problem-that-prevents-results-from-being-returned?forum=sharepointsearch
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How do I use "Search Query" for nontrivial searches?

    After a few years in the community, this is my _first_ question to the boards ;-)
    In speaking with a colleague today, I learned about an NI forum feature that would be useful for me. When I tried to configure it, I then learned that I didn't know how to use it. When I tried to learn how to use it, I further learned that it wasn't fully documented. So, I'd like some clarification :-)
    The feature in question is "Search Query" which will send you an email when a forum search matches your query. What I don't know is:
    What are the rules (syntax) for search queries? For example, I would like to search for single words, all the words that I specify, as well as exact phrases. How do I differentiate between multiword queries and exact phrase queries?
    Is it possible to have more than one Search Query?
    If so, how do you delineate them? Would I use commas, a new line, something else?
    I'm asking because the available (and discoverable) documentation doesn't mention what to do when you want more than one Search Query. The help text on the subscription page [1] makes me think that only one query is possible, and says a Search Query:
    Sends you mail every time a message matching your query is submitted. Search queries take up to 15 minutes to take effect. Saving a blank query will disable this feature and will stop any mail from being sent.
    The other place I tried was the NI Forum FAQ [2], which makes me think that more than one query is possible:
    If you add a board, thread, message, or search term to your subscriptions, the system will send you an e-mail every time someone posts to the board, or replies to the message or thread. If you prefer not to receive an e-mail for your subscriptions, you can subscribe to the RSS feed of a board, thread, user, or search term.
    The FAQ goes on about what to do with board, thread, and message subscriptions, but doesn't say anything more about search subscriptions.
    The last place I looked was on the search results page itself. In the blue header that precedes the results, there's a link on the far left that says "Search Options" with a single option that says "Subscribe to this search's RSS Feed". While I could subscribe and use an RSS reader, I really would prefer email. I suppose if only one Search Query is possible, then this will be my workaround.
    As a comment, why does the Search Options menu not also have a "Subscribe to this search" option, which would add another entry in the Search Query box? This is a noticeably different interface than the Thread Options menu.
    [1] Subscriptions & Bookmarks
    http://forums.ni.com/ni/user_subscriptions
    [2] Frequently Asked Questions
    http://forums.ni.com/ni/help_faq
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)
    Solved!
    Go to Solution.

    Hi Joe,
    Thanks for all of the questions and congrats on posting your first question!
    Unfortunately I think all of your questions come from the valid assumption that the search query functionality is more robust than it actually is.  The search query functionality really only serves a single purpose and that is to email you when your phrase has been posted to the forums.  For me, I use it to email me when my name is mentioned in the forums.  It serves this purpose well since I have it set up to work off just a single search term.  However I find that multiple word phrases are combined with an OR which is not as useful.  The search query does not adhere to any common search syntax that you would expect (I believe we are the only community that uses this feature so it has not been improved upon).
    The best way to set up both multiple word queries and multiple different queries is to use the RSS feed as you mentioned.  This way you can tailor your search very specifically using different advanced search options and subscribe to them all in one feed reader without constantly getting emails.  The search query emails do not adhere to the digest subscription settings.  I find that the RSS feeds work very well for searches and I am fond of using them, but I do use an RSS Reader for many things so it is not out of my normal workflow.
    Thank you for reading the Forum FAQ.  I've done some work to improve it but I think it has a long way to go and it's good to know that people read it
    Regards,
    Laura
    Web Support & Operations
    National Instruments

  • How to club 2 queries in one formatted search query

    Hi All,
    I have inserted a formatted search in the stock transfer for chnaging the 'From warehouse' based on series.
    I have written following query for same,
    SELECT $[$18.1.0]='08' WHERE $[OWTR.series] ='46'
    It is working Fine
    I want ot use same concept for selecting other based on other warehouse
    e.g
    SELECT $[$23.5.1]='02' WHERE $[OWTR.series] ='45'
    But I am not able to club these queries on one formatted search query can anybody help to group it in one formatted search query....
    Thanks and Regards,
    Atul Joshi
    Edited by: Atul Joshi on Dec 23, 2008 5:20 PM

    Hi Atul,
    You could define the quey like this
    SELECT
    CASE
             WHEN $[OWTR.series]='46' THEN '08'
             WHEN $[OWTR.series]='45' then '02'
    end
    from OWTR
    Regards,
    Vijay kumar
    SAP Business One Forums Team

  • How to modify search query based on new FE

    Hi,
    As per a requirement, in All Accounts search (advanced search section), I had to replace 5 checkboxes (e.g. Role1, Role2, Role3, Role4, Role5) by a single dropdown (codelist) name= "Account_Roles" containing same values (Role1, Role2, Role3, Role4, Role5). I created Customer's XBO and declared field of the codelist type, name= "Account_Roles". So, the XBO now has below 6 fields :
    Role1, Role2, Role3, Role4, Role5 (type = Indicator)
    Account_Roles                            (type = codelist)
    Existing search on All Accounts worked on the 5 checboxes and fetched those accounts for which the values matched.
    E.g.
    If in search parameters, I check Role1 & Role2, and for Account1, these values are stored as "true", then Account1 will be shown in the result list.
    Now the search UI doesn't have the checkboxes, but codelist ('Account_Roles') which can have value 'Role1'/'Role2'/'Role3'/'Role4'/'Role5' or combinations are also possible like 'Role1' OR 'Role2', etc..
    My question here is -
    Will the old search query that worked on indicator fields earlier, handle the new FE "Account_Roles" automatically ?
    If not, then will modification be required to existing search query ?
    If modification is required, what steps I need to follow to handle this new field instead of checkboxes.
    I need exact steps to modify a search query, as I tried several things in the PDI but was not able to confirm if this requirement can be implemented by modifying search query or it is not feasible from PDI perspective.
    Appreciate all your inputs.
    Thanks,
    Sachin.

    Hi,
    you can create a link between the vendor objects itself, means link 0vendor with 0ven_compc and 0ven_purorg. This should give you a list of all vendors multiplied with the comp codes multiplied with the purch. org. May be here it is possible to create another link between a attribute (eg. comp_code of 0ven_purorg with comp_code of 0ven_compc). In case it is not possible you need to add this link information somehow. Another option might be to create 2 queries. One on a infoset of 0vendor and 0ven_purorg and another one on 0vendor and 0ven_compc.
    regards
    Siggi

Maybe you are looking for

  • Restoring from Lion Time Machine backup and keeping Lion recovery partition

    I am installing a new hard drive in my MacBook Pro. I have a Time Machine backup of everything, but I'm aware that just restoring the Time Machine backup to the new drive will not restore the Lion recovery drive/partition. What is the best way to mov

  • I can't get Photoshop CS6 to recognize TWAIN

    I've imported and installed the new drivers from Canon and also have downloaded Win_Optional_Plug-Ins.zip. I've moved the Twain_32.8BA file into the Photoshop plug-ins folder, restarted the system, relaunched Photoshop and it still doesn't show when

  • Homepage framework/Overview iView

    Hello All, I am using ESS 1.0.  The overview screen for ESS has various areas such as Personal Info, Benefits and Payments etc. If I want to have one set of users viewing Personal Info and benefits and payments and the second set of users only viewin

  • Creative Cloud Menu Bar Bug (Mountain Lion)

    I see this everytime I use Mission Control when CC's menubar item is running. Could we hope for a fix in the next update?

  • Sudden Airport Signal Weakness

    It happened about 2 weeks ago where both at home and work (same type of airport) my computer's ability to pick up a signal has diminished a lot. Right now I am 7 feet away from my airport and the signal in the status bar bounces between 3 and 1 bar.