Query Based Taxonomy - Dynamic Creation of a Query Problem

Hi,
I'm trying to create new category nodes in a taxonomy and to assing them queries. I know how to do this, but I encountered a strange behavior. Here is the situation:
I have a string property DocumentType. When manualy creating a query, it looks like:
DocumentType CONTAINS "Some string"
But when I do the same using code I get:
DocumentType IS "Some string"
And as a result of this, the taxanomy is not working properly.
Here is the code:
     indexService =
     (IIndexService) ResourceFactory
     .getInstance()
     .getServiceFactory()
     .getService(
     IServiceTypesConst.INDEX_SERVICE);
     //        This kind of classification index offers functionality working with query based taxonomies
     qbcIndex = (IQBClassificationIndex) indexService.getIndex(indexId);
     //        Get a query folder - a query folder is a representation of a query based taxonomies category
     queryFolder = qbcIndex.getQueryFolder(RID.getRID(folder));
     //        List of IQueryEntry objects for the query folder
     queryEntryList = queryFolder.getQuery(context);
     //        Cast the IQBClassificationIndex into a ISearchIndex object
     searchIndex = (ISearchIndex) qbcIndex;
     queryEntry = searchIndex.getNewQueryEntry();
     queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
     queryEntry.setPropertyName(propertyName);
     queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
     queryEntry.setValue(propertyValue);
     queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
     queryEntryList.add(queryEntry);
     //        Set the query for the query folder
     queryFolder.setQuery(queryEntryList, context);
     qbcIndex.updateCategoryContents("Document_Types", false, context);
Can somebody tell me what am I doing wrong please. Isn't it because of IQueryEntry.PROPERTY_OPERATOR_EQUAL? Is there any substring operator?
Thanks a lot.

Hi, Robert
  In this moment, I have a problem with Query Based Taxonomy, maybe could you help me. I insert the query in to the taxonomy from code, but when i use the method
  qbcIndex.updateCategoryContents("/taxonomies/borrame5/Prueba2", false, context);
  I got the next exception:
#1.5#0014C210F3D1002A000001200000565B000431CC93AD5979#1180654627543#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_17##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)#
#1.5#0014C210F3D100310000012B0000565B000431CCC47166AB#1180655445698#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_18##0#0#Error##Plain###com.sapportals.wcm.service.indexmanagement.IndexNotReadyException: Some documents are not included in this update because indexing has not been finished yet.#
#1.5#0014C210F3D100310000012C0000565B000431CCC4717417#1180655445701#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_18##0#0#Error##Plain###     at com.sapportals.wcm.service.indexmanagement.retrieval.trex.AbstractTrexIndex.updateCategoryContents(AbstractTrexIndex.java:2493)#
  I have doubt what parameters i need to pass to the method updateCategoryContents,
  Let me give some information:
taxonomy:
   /taxonomies/borrame5/Prueba2
repository:
   /documents/Portal_KOF/KM/Pruebas1/Pruebas Versionamiento
classification and search index:
   borrame5
   I can't classify automatically, when i insert the query from code. When I manually insert the query from the portal, automatic classification run perfectly.
Thanks
Greetings
JARO.

Similar Messages

  • Query based taxonomy from scratch gives NoSuchMethodError...

    I'm trying to create a query based taxonomy following the instuctions specified in the help docs: KM Platform -> Admin Guide -> Content Mgmt -> Taxonomies and Classification -> Creating a QBT -> from scratch. I created an index on a newly created (hence empty) folder in the 'documents' repository. So, essentially, the data source points to that folder. Also, I selected 'TREX Classification' on the 'Service' drop-down while creating the index. I left the crwler profile as blank. Then I went on to create a new 'Query Based Taxonomy'. I was able to create it alright, but as soon as I click on it to add folder and the such, I get this error:
    java.lang.NoSuchMethodError
         at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyNamespaceManager.getDocumentTaxRMRids(TaxonomyNamespaceManager.java:1876)
         at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyNamespaceManager.getTaxonomyClassResources(TaxonomyNamespaceManager.java:1831)
         at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyNamespaceManager.addChildDocuments(TaxonomyNamespaceManager.java:1942)
         at com.sapportals.wcm.repository.manager.taxonomy.TaxonomyNamespaceManager.getChildren(TaxonomyNamespaceManager.java:368)
         at com.sapportals.wcm.repository.CollectionImpl.internalGetChildren(CollectionImpl.java:966)
         at com.sapportals.wcm.repository.CollectionImpl.getChildren(CollectionImpl.java:179)
    Any help in solving this is highly apprecaited.
    We run EP6 SP2.
    I did NOT create a 'crawler profile' for this set up.
    thanks,
    Biju.

    Hi Biju,
    re. your NW'04 SP stack 4 migration intention:
    NW'04 is still in ramp-up (SP stack 4 is the current shipment bundle of it) so at the current point in time, only participating ramp-up customers can use it.
    A migration from EP6.0 SP2 to NW'04 will be possible (but not during the ramp-up phase).
    From a Knowledge Management & Collaboration perspective, we will port most of the NW'04 SP stack 4 functions to EP6.0 SP2 as well. These functions will be shipped as EP6.0 SP2 Patch 5 (planned shipment date beginning of Q4 / 2004) so for mid-term, you can also plan to stay on EP6.0 SP2 if you have no other pressing reasons for going to NW'04 (e.g. enhanced Web AS functions).
    This feature porting from NW -> EP6.0 SP2 is an 'only-once' action, however, and NetWeaver will be the release for new features in the future.
    Regards,
    Joerg

  • Error while creating Query based taxonomy.

    Hi,
    I have created an index and trying to build a query based taxonomy though
    Taxonomy Query Builder in content management. Earlier I have created
    another index but after that I have deleted it but still while trying to build a query based
    taxonomy it is giving an error that earlier index doesn't exist and not diaplaying the new
    index and taxonomy that I have created. Taxonomy Trainer is working fine.
    Please suggest to resolve this problem.
    Thanks,
    Deepika

    Hi,
    did u created the taxonomy in the new index are you imported.
    Generally once you delete an index and you try to create an index with the same name wil give error. This may be because of the cache problem.  Try to restart the server. Hope that may help you.
    Raghu

  • Documents in Query-based Taxonomy are not Autoindexing

    Hello experts!
    I am on EP6.14 with Trex 6.  I have a repository with a query-based taxonomy on it and is also part of a regular search index.  I have autoclassification on. 
    On each document I have a couple of properties that are used to match documents in queries in my taxonomy.  On the initial set-up and load, everything worked great.  Documents went right where they were supposed to.  But sometime after we released this to the business, the documents no longer automatically index.  If I change a document property or set up a new one, it finds the category but leaves them as "suggested."  You then have to go in and accept those suggestions to get the document to the right taxonomy.  In short, it acts as if autoclassification is off.  I have noticed that the Classification index does not submit a new document if I change a property but the search index does.  Not sure if that is applicable but I would think both should do that since it is a change.
    I did some research and found that synchronization issues or new folders could cause this problem but I have synchronized with no success.  Also, state management is not on for the repository.
    Is there any reason why autoclassification would stop on its own?  What can I do to get it back on?
    Thanks-
    J
    Many points given for helpful answers!

    Hi Frederick-
    Thanks for your response-
    We have a single CM DB repository.  There is a search only index at the root folder and classification index on a folder below the root.  Normally, we don't overlap but we wanted only the folders in the lower folder to be part of the taxonomy.  I suppose we could just rule out the other documents by not having them match any queries but this way it was guaranteed. 
    THe search and classifications are working (aren't throwing errors) but like I said, I would think that both would have to push the document through the queue.  But I'm only seeing the search index do that.   Now if I go and accept the recommended categories, then it goes into the queue for the Classification index.
    J

  • Query-based taxonomy doesn't work

    Hi,
    I created a query-based taxonomy in the index of a folder. Then in Content Management - Classification I set the Category and query of the taxonomy. However, documents that meet the query cannot be classified into that category - they are still in Documents to Classify. It's the same with example-based taxonomy.
    Am I missing something?
    Thanks,
    Ray

    Hi Ray,
       To work with this kind of taxonomy you must do:
    1. Create index using classification service.
    2. Create taxonomy based in query.
    3. If you click in this taxonomy you can create new folders where documents will be stored (as result of classification, logical links).
    4. In Content Management->Classification->Taxonomy Query Builder->choose the taxonomy created in step 2 and
    create a search query for a category in a query-based taxonomy.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/77/49523ec744d947e10000000a114084/frameset.htm
    Patricio.

  • Query Based Taxonomy and Searching Problem!

    Hi all,
    Ive an urgent problem to solve ....
    I create some customs properties with dependent values, for example, if I put Country: Germany, I ve three options, (Waldorf,Munchen,Berlin) and so on ...
    Then, I create a Query Based Taxonomy, where in some categories Ive a query, with the dependent value (Ex: Waldorf) ... I mean, If City = Waldorf, the document belongs to this category.
    So, when I do this, the taxonomy fails ... Only with the dependent value, I mean, if the category is with the base property (Ex, Country) it works.
    Plese, help!
    Cheers,
    Andres.

    Hi,
    To include a dependant property in a query, you have to enter both parent (Country = Germany) and the dependant (City = Munich) properties in the category.
    Hope this help
    Kind regards
    Vincent

  • Join query in a dynamic list of values query

    I have a join query in a dynamic list of values query. The value does not return a text value, but rather the id value.
    Is it possible to use a join query in a dynamic list of values query?
    For example...in the below query, I expect to see ename in the drop down list, but I see class_emp_id.
    select b.ename d, a.class_emp_id r
    from class_emp a, emp b
    where a.class_cat_id = :CURR_CLASS_CAT_ID
    and a.emp_id = b.emp_id
    order by 1
    Thanks,
    Reid

    :CURR_CLASS_CAT_ID is a number datatype.
    I think the problem is with the ARF. Whenever I change the dynamic LOV query to exclude the :CURR_CLASS_CAT_ID (a passed in session variable), the drop down shows all the text names I am looking for; albeit, too many since I am excluding the :CURR_CLASS_CAT_ID.
    The page I am having the problem with is a popup that is called from a report link on another page. When I show the session variables on the popup page, it shows values for only 1 of the 3 session variables I am passing to this page.
    I am using the javascript:popUp2 syntax when I call the popup page from the report link.
    As I said previously, I am passing 3 parms and only the 1st parm is getting a value. Yes, there are values for all three parms in the record of the report.
    Is there a limit to the number of variables (itemNames) that can be passed to the popup using this method?

  • Query based on dynamic url paramter

    I am displaying all the results of a simple select statement on one page in an html table. One of these colums displays the unique ID of every row returned from the query. I want to make the ID field an active link, whereupon when the user clicks it, they are taken to seperate page where information for just that row is displayed. I'd imagine you have to pass the ID for that specific row to the next page via the URL, and run another query based on that specific ID to retrieve the information. I just don't know how to have the URL variable equal the ID for each row. All I can find is static examples such as 'www.gotopage.jsp?ID=1234'.

    while displaying the result in html table,
    form the href like this
    String id = resultSet.getString("ID");
    <a href="gotopage.jsp?ID=<%= id%"></a><%=id%>.......
    or post your code and we may be able to point it out.

  • Filter a Query Based on the Output of Another Query

    Is it possible to run a query based on the put put of another query? I have two queries. One query is based on GL Line items and shows the account assignemnt of postings where a customer has had a debt raised and it been credited to an account assignment e.g. Order, Cost Centre or Profit Centre. The other query is on an AR cube and that shows payment made. I want to bring these together to show the owners of the various account assignments to what extent customers have actually paid the debts that have been raised and credited to them. This I do as the source document of the CO doscument matches the allocation of the ar document. So I have a query that shows the CO journal and another query that shows payments. But I only want to show the payments in the second query for documents displayed in the first query (which can be restricted by period and fiscal year and the particular account assignment).

    Hi,
    This can be acheived by usign a replacement path variable.
    Create replacement pathe variables for those the filter values in the second report nneds tobe restricted from the first.
    Then in the properties of the varioable say replce by query result and input the first query name in it.
    Use these variables in teh filter section of the second report.
    Make sure the characteristics for which you created the replacement path variables are in teh row section of the first Query.
    Now on executing the second query you will have it filtered based on teh values of the first Query.
    Hope this helps.
    Regards.
    Shafi.

  • Perfomance Based on Infocube creation or Bex Query creation

    Hi,
    I just wanted to know is there any performance is affected whether Universe is created on top of Bex query or on top of Infocube.
    Out of these which is the Best practice to follow.
    Regards
    Gaurav

    This is the best practice to follow
    build your universe on top of Query not direct infocube
    this will keep the row level security applied.
    the performance will depend on how you design your query and the amount of data to be retrieved from the infocube.
    good luck

  • Creating folder Structure for Query based taxonomy

    Hello friends,
            I am confused as to where do I create a folder hierarchy for taxonomy. Do I need to create a new repository for creating a folder structure. The help.sap.com mentions about using the Category Browser iview for creating the same. I am unable to find this iview in EP6 SP12. Can someone, please guide me as to where do I create a taxonomy folder structure hierarchy?
    Your help is appreciated.
    Thanks,
      G.G

    Hey G.G.,
    Yes, i'd love to.
    So, as stated above, directly below the "Taxonomies" folder you'll see the names of the existing taxonomies. There is no "new" option on this level, because a new taxonomy can only be created under "System Administration" -> "System Configuration" -> "Knowledge Management" -> "Index Administration". After you create a "TREX Search and Classification" or "TREX Classification" index, you can go to the index menu "Taxonomies" and say "New". This will automatically create a new folder under in the "Taxonomies" view.
    Now, if you go one level further, so second subfolder under "Taxonomies" you should have the "New" option. If not, then you'll have to check the permission settings. Please go to "Content Administration" -> "KM Content" -> "Taxonomies" and then on the Menu "Details" -> "Settings" -> "Permissions". You might need to adjust permissions as suggested by SAP in SAPNote (599425):
    Role:"ContentManager"=FULL CONTROL;
    Group:"Everyone"=READ.
    Please check that the already existing subfolders have inherited the permission changes.
    Hope this solves your problem,
    Robert

  • Query Based Taxonomies

    Hello,
    I've created successfully a query based taxonomy. I also defined the queries to the folders within the taxonomy. Now my problem is, that a document only belongs to one folder. But in some cases, that's not nice, e.g. when you want to navigate through the hierarchy.
    Example:
    I've got a structure like Folder F1, under that a Folder F2.
    For folder F1 I defined a query: property P1 contains value V1.
    For folder F2 I defined a query: property P2 contains value V2.
    After updating the taxonomy it should now be possible, that documents which are classifications of folder F2 also classify to folder F1.
    How to do that?
    Help would be appreciated.
    Best regards,
    Denis

    Hello Karin,
    thank you for your answer. Does this mean, that a navigation through the taxonomy hierarchy is not possible (e.g. with a km navigation iView?). Taxonomies are stored in KM under /Taxonomies and I thought that a navigation with a km navigation iView is possible. But I think the real benefit of taxonomies is, that the deeper the hierarchy folder is, the more classified and smaller are the results. But when documents get only classified to more folders when the folders are on the same hierarchy level, how should a navigation be realized?
    Thanks in advance.
    Best regards,
    Denis

  • Running query based on other query result

    Hi Again Friends.
    first of all i am very much thankful for members who sent me prompt response and been helping for last 2 days.I am again with query,maybe a lame one.
    I want to run a query based on record return from previous query.FOr instance i have query
    Select sum(marks) from studentMarks,student_id where course_Id=4 and student_Id
    IN
    (Select StudentId from Student where dept_id=3)
    the courseID and studentID are being repeated in the above table
    now I want to show Student Names with the marks Obtained and who belong to dept_id=3,i want to run other query to get Name based on StudentId resutned from previous one.
    Is there anyway to do this in oracle to save result in some resultSe and use it later?
    Thankyou

    Do you mean something like:
    Select sum(marks), S.StudentId, S.StudentName
    from StudentMarks M
    ,      Student          S
    where S.course_Id=4
    and  M.Student_id = S.StudentId
    and S.student_Id
    IN
    (Select StudentId from Student where dept_id=3)
    group by StudentId, StudentName

  • Cannot train an example based taxonomy in trex

    Hi friends,
       I have created an index in index administration.And attached a data source also.Then i create a new example based taxonomy and also i create folders for categories.Then in content management i go to taxonomy trainner.There is no choice of upload of document through which i can train the taxonomy.Is there a way through which i can upload the documents in the categories i have created.Also the training documents should be in what format(doc,ppt).Also if somebody have a document for Example based and query based taxonomy creation please send the link.
    I am having EP6 sp15 and trex 6.1.
    Thanks

    Hi
    In example or query  based taxonomy  you have to upload the doccuments in the KM repository  that is the data source  whic is a folder in KM repository framework right click and then use <b>upload</b> the docs into it and in taxonomy you only create categories and manually train the  taxonomy using query builder or trainer in Classification inbox .I will suggest you to go through the guides available in SERVICE market place service.sap.com and use HOW-To search term and then navigate to TREX to find the guides.Docs can be any format.
    You can use an existing hierarchy in your CM to train your new taxonomy.
    You can train a taxonomy automatically if you already have a folder hierarchy that you want to transport to a taxonomy.
    Create the taxonomy in index management. This determines that you are going to train the taxonomy using an existing folder hierarchy. The system carries out the following steps:
    It copies the specified folder and its entire subordinate folder hierarchy to a taxonomy structure. This creates a category for each folder.
    The system then carries out the initial training of the taxonomy.
    All documents in the folder hierarchy are also indexed. You can decide whether the folder that you are using to train the taxonomy is to be assigned to the index.
    You train the taxonomies initially by classifying documents from your folder hierarchy.
    This initial training is necessary so that the system can carry out automatic classification, or can make suggestions when manual classification takes place.
    For the initial training, you classify documents from the folders in your knowledge management system. You do this is the iView in which you navigate within the folder hierarchy.
    The necessary number of documents depends on the quality of the documents
    hope this helpe you please do not forget to give points
    with regards
    subrato kundu

  • ADF table based on dynamic query

    I am new in JDeveloper and ADF.
    I want to add an updatable ADF table on a JSF page, but I want to use
    dynamic criteria for the query on which the table will be based on.
    The user will fill in some fields then press a button. Then a daynamic
    where clase will be created and the table
    will be populated.
    How can I do this?

    Hi,
    You should get aquainted with ViewCriteria for your ViewObject.

Maybe you are looking for

  • Mini DVI out questions

    I've been thinking of hooking my Macbook up to my 52" 720p HDTV. But most of the mini-DVI adapters I've been looking at are only S-video or compsite (RCA) out. Has anyone used this and can let me know how this works? I'm mostly watching TV shows that

  • How to use Airport Extreme to create a second wireless network with different IP addresses behind an existing modem/router?

    Hi, I have an existing modem/router from my ISP that does DHCP and NAT with base IP 192.168.1.1 distributed in the wireless network. I use this wireless network for our private devices. I could turn off the DHCP server in this first router, but there

  • 845pe FIr CPU fans

    Hi Just a thought - With all the reported problems with the temp/ fan speed system on this board I read about does anyone know of a good CPU cooler with a bulit in temp probe, along with separate temp and fan speed display- Seems a good solution to t

  • Nowadays my iPhone 5 lost calls, why?

    I upgraded to 6.1.3 and nowadays my iPhone 5 16gb lost phone calls. Sometimes immediately, sometimes after a quarter of an hour. Please help me why?!

  • Program crashes when trying to return item early

    I have been having this issue since I started using Adobe Digital Editions in April 2014, but I never thought to search for a solution until now.  Whenever I try to return a borrowed item early, I get one of two responses: 1. an error message that re