Sunday, 11 June 2017

Check Endeca Workbench publishing activities status

Whenever you publish changes to an application using Workbench tools such as Experience Manager, Keyword Redirects. You can check the status of these changes using Publishing Status console.

An update can have a status of Running, Success, or Failure.

Steps to open the Publishing Status console :

1. On any page in Workbench, click the status bar at the bottom of the page.The Publishing Status console appears.
2. In the Choose Application field, click a specific application or All Applications.This selection shows the status when an administrator runs the promote_content script to promote content from the authoring to the live environment.
4. Click a status line in the console to show details about the publishing action that triggered the status.
5. To toggle between ascending and descending order for the contents of that column, click a column
heading.
Publishing Status Console
Publishing Status Console

Monday, 5 June 2017

MDEX Search query processing order

The MDEX Engine uses the following high-level steps to process record search queries :
 

1. Record filtering
2. Oracle Commerce Query Language (EQL) filtering
3. Tokenization
4. Auto correction (spelling correction and automatic phrasing)
5. Thesaurus expansion
6. Stemming
7. Primitive term and phrase lookup
8. Did you mean
9. Range filtering
10. Navigation filtering
11. Business rules and keyword redirects
12. Analytics
13. Relevance ranking

Note : For Boolean search queries, tokenization, auto correction, and thesaurus expansion are replaced
with a separate parsing phase.

Saturday, 8 April 2017

Workbench | Export import workbench users

Sometimes you need to create similar (same set) workbench users on multiple environments (staging and production). Creating same set of users  manually on multiple environments is long process. 

You can these steps to speed up user creation process.

1. Create users manually in one environment : For example in below screen shot I added two users in workbench.

Workbench User Creation
Workbench User Created
 
2. Export users using below command.

========================================================================
export_users.bat --config ..\conf\export_users.properties --output users.json
========================================================================

3. Import these exported users on destination environment.

========================================================================
 import_users.bat --input users.json --config ..\conf\import_users.properties
========================================================================

Before Import






After Import
Note :  These scripts are available at ENDECA_TOOLS_ROOT\admin\bin

Sunday, 26 March 2017

Workbench | Configure the user inactivity logout

Use below steps to set how much time that Workbench users must be inactive before they are automatically logged out.

1. Stop the Endeca Tools Service.
2. Navigate to $ENDECA_TOOLS_CONF/conf.
3. Open the webstudio.properties file, and locate the com.endeca.webstudio.timeout.warning property.
# The warning for impending auto-logout
com.endeca.webstudio.timeout.warning=3300
 
4. Change the value to the number of seconds of inactivity that you want to elapse before an impending
automatic logout warning appears to an inactive user.
5. Locate the com.endeca.webstudio.timeout.logout property.
# The time where a user will be automatically logged out due to inactivity
com.endeca.webstudio.timeout.logout=3600
 
6. Change the value to the number of seconds of inactivity that you want to elapse before an inactive user is logged out of Workbench.
7. Save and close the file.
8. Start the Endeca Tools Service.

Note : Here time out value specified in seconds.

Application displays below pop up after warning timeout. Here on click on OK user can continue the session without login.

Timeout pop up
Timeout warning Pop up
 
Application display below pop up after session time out time. Here on click on OK, it redirects user to login window.

Session Expire pop  up
Session Expire Pop up

Saturday, 18 March 2017

Endeca | Convert Forge output binary records to xml

While trouble shooting forge based application indexing. I was trying to find the way to convert endeca binary records [forge output] to xml records. This is essential to know what is output from Forge to analyze the issue.

Then I found very handy utility from endeca to achieve this : binary2xml utility

This utility is locate at $ENDECA_ROOT/bin.

Using this utility you can easily convert binary records to xml file.

Syntax  : binary2xml.exe <Source binary file> <Output xml file>

Example : binary2xml.exe  Test-sgmt0.records.binary Test.xml 

Below is the sample output generated using this utility.

=========================================================================

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE RECORDS SYSTEM "records.dtd">
<RECORDS>
   <RECORD>
      <PROP NAME="ProductName">
         <PVAL>Tea</PVAL>
      </PROP>
      <PROP NAME="ProductId">
         <PVAL>1</PVAL>
      </PROP>
   </RECORD>
   <RECORD>
      <PROP NAME="ProductName">
         <PVAL>Cup</PVAL>
      </PROP>
      <PROP NAME="ProductId">
         <PVAL>2</PVAL>
      </PROP>
   </RECORD>
   <RECORD>
      <PROP NAME="ProductName">
         <PVAL>Cycle</PVAL>
      </PROP>
      <PROP NAME="ProductId">
         <PVAL>3</PVAL>
      </PROP>
   </RECORD>
   <RECORD>
      <PROP NAME="ProductName">
         <PVAL>Coffee</PVAL>
      </PROP>
      <PROP NAME="ProductId">
         <PVAL>4</PVAL>
      </PROP>
   </RECORD>
</RECORDS>

========================================================================= 

Tuesday, 17 January 2017

Java Character Convertion to Unicode with native2ascii Utility

While working on multi language assignment found interesting JAVA utility.

native2ascii : Converts a file with ‘non-Latin 1’ or ‘non-Unicode’ characters to ‘Unicode-encoded’ characters.

Sometimes you need this kind of conversion. As in our case we need this to create multi language  resource bundles. 

Here are the steps :

1. Create file [Resource_Original.properties in our case] and save as UTF-8 format [This option is available in popular editors like NotePad++].

===================================================================
login=Bejelentkezés
personalInformation=Személyes információ
orderHistory=Rendelés történet
paymentInformation=Fizetség információ
===================================================================

2. Now use native2ascii command to convert it into Unicode format.

 native2ascii -encoding UTF-8 Resource_Original.properties Resource_converted.properties

3. Check the converted file [Resource_converted.properties]. 

=================================================================== 
login=Bejelentkez\u00e9s
personalInformation=Szem\u00e9lyes inform\u00e1ci\u00f3
orderHistory=Rendel\u00e9s t\u00f6rt\u00e9net
paymentInformation=Fizets\u00e9g inform\u00e1ci\u00f3
===================================================================

Friday, 6 January 2017

Oracle Database Connectivity Issue | ORA-17002 IO Error : Socket read timed out

While connecting oracle database with SQL Developer got below error.

ORA-17002 IO Error: Socket read timed out


After analysis found that listener was down. Here are steps to analyze and fix this.

1. Go to ORACLE_HOME/bin and check listener status using lsnrctl status command. It will show below message.
=======================================================================
[root@dev bin]# ./lsnrctl status

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 06-JAN-2017 18:42:11

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused


=======================================================================

2. Now start the listener using lsnrctl start command.

=======================================================================
 [oracle@dev bin]$ ./lsnrctl start

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 06-JAN-2017 18:55:16

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Starting /app/oracle/product/12.1.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.1.0.2.0 - Production
System parameter file is /app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Log messages written to /app/oracle/diag/tnslsnr/dev/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                 TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date             06-JAN-2017 18:55:18
Uptime                  0 days 0 hr. 0 min. 0 sec
Trace Level           off
Security                ON: Local OS Authentication
SNMP                   OFF
Listener Parameter File   /app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File         /app/oracle/diag/tnslsnr/dev/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully


=======================================================================

3. Now you can confirm listener status again using lsnrctl status command.

=======================================================================
 [oracle@dev bin]$ ./lsnrctl status

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 06-JAN-2017 18:55:42

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                 TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date             06-JAN-2017 18:55:18
Uptime                  0 days 0 hr. 0 min. 24 sec
Trace Level          off
Security               ON: Local OS Authentication
SNMP                  OFF
Listener Parameter File   /app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File         /app/oracle/diag/tnslsnr/dev/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=localhost)(PORT=5500))(Security=(my_wallet_directory=/app/oracle/product/12.1.0/dbhome_1/admin/dev/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "localhost" has 1 instance(s).
  Instance "dev", status READY, has 1 handler(s) for this service...
Service "devXDB.dev.local" has 1 instance(s).
  Instance "dev", status READY, has 1 handler(s) for this service...
The command completed successfully


=======================================================================

Note : To perform this activity you should login as non root user.