endeca | Ruby adapter for Endeca
kandi X-RAY | endeca Summary
kandi X-RAY | endeca Summary
Ruby adapter for Endeca (using the JSON bridge). Allows you to define the mappings and readers required to pull information from Endeca in a very Ruby-esque way.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Helper method to execute a new query
- Creates a new mapping
- Sets a string into a hash .
- Transforms the given query options into a hash
- Sets the value for a hash .
- Split the key pair with the given key
- Initialize the documents
- Apply the given transformations
- Executes a duration of a block .
- Perform a single query
endeca Key Features
endeca Examples and Code Snippets
Community Discussions
Trending Discussions on endeca
QUESTION
I'm facing an error when I ran the baseline_update.bat from the control folder, I tried to restar_services but it didn't help at all. It happen everytime that I want run the baseline..
...Error starting baseline crawl 'MediaSource'. Occurred while executing line 8 of valid BeanShell script: [[
5| if (LockManager.acquireLock("update_lock")) {
6|7| // archive logs and run the crawl.
8|
CAS.runBaselineCasCrawl("MediaSource");
9|
10| // clean directories11| Forge.cleanDirs();
]]
Aug 24, 2019 10:39:44 PM com.endeca.soleng.eac.toolkit.Controller execute SEVERE: Caught an exception while invoking method 'run' on object 'BaselineUpdate'. Releasing locks. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.endeca.soleng.eac.toolkit.Controller.invokeRequestedMethod(Controller.java:933) at com.endeca.soleng.eac.toolkit.Controller.execute(Controller.java:271) at com.endeca.soleng.eac.toolkit.Controller.main(Controller.java:138) Caused by: com.endeca.soleng.eac.toolkit.exception.AppControlException: Error executing valid BeanShell script. at com.endeca.soleng.eac.toolkit.script.Script.runBeanShellScript(Script.java:180) at com.endeca.soleng.eac.toolkit.script.Script.run(Script.java:127) ... 7 more Caused by: com.endeca.soleng.eac.toolkit.exception.CasCommunicationException: Error starting baseline crawl 'MediaSource'. at com.endeca.eac.toolkit.component.cas.ContentAcquisitionServerComponent.startBaselineCasCrawl(ContentAcquisitionServerComponent.java:451) at com.endeca.eac.toolkit.component.cas.ContentAcquisitionServerComponent.runBaselineCasCrawl(ContentAcquisitionServerComponent.java:357) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at bsh.Reflect.invokeMethod(Unknown Source) at bsh.Reflect.invokeObjectMethod(Unknown Source) at bsh.Name.invokeMethod(Unknown Source) at bsh.BSHMethodInvocation.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.BSHBlock.evalBlock(Unknown Source) at bsh.BSHBlock.eval(Unknown Source) at bsh.BSHBlock.eval(Unknown Source) at bsh.BSHIfStatement.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at com.endeca.soleng.eac.toolkit.script.Script.runBeanShellScript(Script.java:165) ... 8 more Caused by: Cannot start the already running crawl MediaSource at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at java.lang.Class.newInstance(Class.java:442) at org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:104) at org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:90) at com.endeca.cas.wsdl.CrawlInProgressFaultInfo.getDeserializer(CrawlInProgressFaultInfo.java:81) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154) at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84) at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464) at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547) at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:379) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.endeca.cas.wsdl.CasCrawlerServiceSoapBindingStub.startCrawl(CasCrawlerServiceSoapBindingStub.java:916) at com.endeca.eac.toolkit.component.cas.ContentAcquisitionServerComponent.startBaselineCasCrawl(ContentAcquisitionServerComponent.java:447) ... 27 more
ANSWER
Answered 2020-Jan-02 at 21:08This is maybe late but, try to run the following script:
QUESTION
My log4j.properties file look like
...ANSWER
Answered 2019-Aug-08 at 15:48To directly address your question: you should debug this appender to see what happens.
Make sure that DB driver (mysql in this case) appears in the classpath of the application.
Make sure that the table / schema exist, because this appender by its own does not create a schema for you
Note that it has a "bufferSize" parameter, so only if the non-stored message count exceeds the buffer, the actual DB request gets performed.
Place a breakpoint on
org.apache.log4j.jdbc.JDBCAppender#execute
and see how it really executes
Overall observation/side notes, not directly related to your answer but still can be valuable. This appender is really outdated and is not a really good solution for modern production applications (unless you have a very small number of logs).
This appender doesn't use batch inserts supported by probably all modern RDBMSs. This appender doesn't use prepared statements.
All-in-all storing logs in RDBMS doesn't really make sense nowadays, logs are meant to be read and analyzed, and RDBMS doesn't offer really handy tools for this (both visual and from the maintenance standpoint: how do delete obsolete messages? Bulk DELETE is very expensive, partitioning? Retention Policies for records are not really supported in many RDBMSs...
So, a much more modern approach is using tools like ElasticSearch + Kibana (+ some log shipper) or even streaming logs to the cloud (like Logz.io)
QUESTION
I am using apache rest CXF with camel in my project. There are number of cases where the length of request URI for rest is too longs and after a certain length camel always though HTTP operation failed exception like below with
...ANSWER
Answered 2018-Sep-29 at 09:53It seems the issue wasn't because of the long URI but due to the fact that one of my header in the request was too large after i removed that header it started working
QUESTION
The indexing is getting failed with the following error at the stage of EndecaScriptService
The cas crawl is getting failed with a wierd socketTimeout exception which is quite random. Not sure whether this is because of the size of the data set that is getting indexed.
...ANSWER
Answered 2017-Aug-03 at 06:57From the ATG Support Documentation:
"httpSocketTimeout" is the maximum period of inactivity in milliseconds between two consecutive data packets before http times out. An in adequate value in this can cause the Read timed out error.
By default the "httpSocketTimeout" is set to 60 secs. Increasing this resolves the read timeout error.
To fix this issue, edit the //config/script/DataIngest.xml
in the deployed app to add
Your file will look something like this:
QUESTION
I recently started working with solr and currently I am exploring solr facet support. For text related fields, I can assume that solr doesn't create any additional data structures to store facet information.
If I have below json document:
...ANSWER
Answered 2018-May-21 at 14:26In general - Solr usually facets on indexed fields, rather than on stored.
There are 3 algorithms, that Solr could use for usual faceting:
enum
Enumerates all terms in a field, calculating the set intersection of documents that match the term with documents that match the query.fc
Calculates facet counts by iterating over documents that match the query and summing the terms that appear in each document.fcs
Per-segment field faceting for single-valued string fields.
They have different drawbacks and benefits. But in general, you could see, that there is no special data structure here needed, all could be done via filter queries or by iterating over documents in the index. For range faceting, there are 2 other methods for faceting:
filter
This method generates the ranges based on other facet.range parameters, and for each of them executes a filter that later intersects with the main query resultset to get the count.dv
This method iterates the documents that match the main query, and for each of them finds the correct range for the value. This method will make use of docValues (if enabled for the field) or fieldCache.
which leads to following summary, for faceting Solr could get use of DocValues - which is special way of recording field values internally that is more efficient for some purposes, such as sorting and faceting, than traditional indexing.
Also, it means that if docValues="true"
for a field, then DocValues will automatically be used any time the field is used for sorting, faceting or function queries.
Going to the last question - if you do not need to do faceting or sorting on this field, you could disable docValues for this field (or just don't touch it, since by default it's a false), which in general will save some space for you.
QUESTION
Do I need to know java to do Endeca commerce. And if yes can someone guide me to what extent of Java should I know, also if you could provide from where could I learn Java only for endeca. Dont want to learn the ADVANCE JAVA. So please guide me...
...ANSWER
Answered 2018-May-08 at 03:36There are some different way to work with Endeca solution:
- Working just settings things and pages as Experience Manager, Stop Words, using the Workbench website (Workbench is part of the Endeca solution) (Zero knowledge in Java is needed.)
- Working in the Baseline point, when you need to provider some ETL workflow to get data from some dataset with Products and Attributes,... The important thing at this point is to know better the component involved in the solution and how the components working together. (http://www.oracle.com/us/solutions/ent-performance-bi/oeid-tech-overview-1674380.pdf) (There is some Spring java code but the AppConfig.xml from Endeca the only I believe if you have some basic java logic, you can understand the Scripts set)
- Just consuming data from some presented Endeca solution. In this points, you are working as a client and there are some API that can be helpful for you (java: https://docs.oracle.com/cd/E28913_02/ContentAssemblerJava.212/pdf/CADevGuideJava.pdf , .NET: https://docs.oracle.com/cd/E28914_01/RADdotNET.213/pdf/RADToolkitNET.pdf). (If you will consume the Endeca as a Java client, at this point you just need to know the Java API)
QUESTION
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppender. log4j:WARN No such property [maxFileSize] in org.apache.log4j.FileAppender. What does this mean, what causes it, and how should you fix it?
...ANSWER
Answered 2018-Apr-24 at 18:33The appender 'file' is of type FileAppender
. FileAppender
does not have a field MaxFileSize
. This is a property of RollingFileAppender
class, which is a subclass of FileAppender
and allows for log rotation based on size.
QUESTION
I am trying to implement partial update in Oracle Endeca. I have a property named "depth" in developer studio. The full update works fine but in partial update I get the error that "Unable to parse value 15.1 for property depth". Why does this happen. Please ask for any information you might need.
...ANSWER
Answered 2018-Feb-18 at 09:23The property were not showing as MDEX engine had different datatype from the updates. To fix this I used a perl manipulator to format the properties .
QUESTION
ATG - Endeca Baseline update is getting failed with the following error in ART apps. But partial indexing is successful.
Attaching the CAS logs also for the corressponding error.
...ANSWER
Answered 2017-Aug-21 at 23:37The above error was resolved after completing the following steps.
Step1 - CAS configuration was exported and imported after the addition of the following change.
true
QUESTION
I want to display only a few products on /browse page. This page is coming from endeca cartridge configuration. I want to intercept the result returned by endeca and add my custom logic to decide which product will be displayed and which can not be.
My logic to decide which product to show on the catalog is dependent on the data which is dynamic and can not be indexed in endeca.
Framework Stack:
Oracle Commerce: 11.2
CAS: 11.2.0
MDEX: 6.5.2
PlatformServices: 11.2.0
ToolsAndFramework: 11.2.0
...ANSWER
Answered 2017-Jul-14 at 00:45This can be achieved by extending ResultsListHandler class and override the process method. This method returns you ResultsList object and it has all the record returned by Endeca. It's alway good to index the properties and use record filter to filter instead of using code.
Note: - This is not recommended way to filter record run time as pagination and other functionality would not work as expected.
I hope this helps.
Thanks, Ajay Agrawal
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install endeca
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page