How to set ik-analyzer as the default analyzer of index in solr of wso2? - wso2-api-manager

I got wso2am-4.0.0 and deployed on my vm. I added some api with chinese name or businessowner name etc. I tried to query by content from devportal like '天气', but nothing listed. I guess chinese data in solr had no support by default. How to achive this ?

Related

How to configure Search API with DDEV

Since the docs are not specific to Drupal, below is a Drupal specific answer.
How to connect search API to DDEV's solr, based on config from https://ddev.readthedocs.io/en/latest/users/extend/additional-services/
In order to connect Search API for Drupal 7 with Solr (https://www.drupal.org/project/search_api_solr):
Add a new Solr server via admin/config/search/search_api/add_server, or edit an existing one.
Under "Solr host" write <projectname>.ddev.local
Under "Solr path" write solr/dev

Alfresco CMIS service to index document

I have uploaded document to Alfresco using Apache Chemistry php client. The documents is uploaded successfully but (I think it is not indexed), content based search is not working on this document. whereas If I upload the same document from alfresco share it is also indexed and content based search works on it. Kindly tell me about cmis service to index document or propose me some solution for it. Thanks in advance!
I was unable to figure out issue with Apache chemistry php client. so I shifted to java version i.e. alfresco-api-examples. link https://github.com/jpotts/alfresco-api-java-examples and following its CmisCreateDocumentExample the file is now successfully uploaded and indexed.

Invalid config file in clean install - missing configuration section 'contactRepository'

I have done the following:
installed a clean Sitecore 7.5 instance
added the relevant asp.net web forms controls and pages to support the site
imported and published a content tree from an old application
Visiting the base site url yields a YSOD with the error message:
Could not find configuration node: contactRepository
Now I understand what this means - there's an expected configuration section that is missing. Adding an empty element contactRepository yields an expected message that this section is not defined.
What is contactRepository, what is its associated configuration section type, what is it for and what values should be specified in it? Alternatively, how can I turn off whatever demands this section to be present?
edit #1:
In the Sitecore.Analytics.config file in the node there are the following two lines:
<!--This configuration node is obsolete and will be removed in a future version of Sitecore. Use "contactRepository" node to get access to Contact repository-->
<contactRepository ref="contactRepository"/>
The comment is total gibberish. Which node? 'Use' how? 'get access' in what sense? How is this different to what's there?
replacing with an empty <contactRepository> without the ref attribute, commenting out this node, both nodes, and the whole tracking node makes no difference to the application's behaviour.
Looking at my local Sitecore 7.5 setup the Contact Repository settings should be in your Sitecore.Analytics.config.
The contacts repository settings relate to the new xDB stuff.
Please ensure you have the correct Sitecore.Analytics config files for 7.5.
There should be around 15 config files with new settings for xDB.
Please read this blog post for more information on the new Analytics setup.
https://www.sitecore.net/learn/blogs/technical-blogs/getting-to-know-sitecore/posts/2014/10/introducing-the-sitecore-analytics-index

read wordpress user data into a local ms access database

I'm a MS Access developer who has a client with a wordpress website. I need a way of reading any new users who are added into the wordpress site into a microsoft access database that resides on the users local machine.
I only need to add any new records and don't need to write anything back to the site.
What would be the easiest way of doing something like this? I would sooner do it from the Access side as I'm not very familiar with wordpress, also I would prefer it to be automated so the user doesn't have to manually export from wordpress then import the data every time.
Any advice appreciated.
Thanks
Justin
There's no way to have WordPress connect to an Access DB because Access isn't persistent, it's on demand. The only way I can imagine handling it would depend on Access more than anything. Assuming Access can using the ODBC connectors installed on the windows system it's running on, you could do the following:
Setup the MySQL ODBC Connector on any systems which would run the Access DB you're setting up. I assume the WordPress install is using MySQL.
Setup a new ODBC connection using that connector within Access to the Wordpress
database (you can use the same connection information stored in the
WordPress root directory in a file called wp_config.php).
If you're connecting successfully, you can then read the wp_users table using properly formatted SQL commands (select * from wp_users, for instance).
The function within Access that manages this can either be scheduled to do it periodically while Access is open or just when Access is initialized. Depending on your needs.
You'll have to compare it to a local table of users to find differences if you're interested in all changes, though the user_login is static through normal channels so it's a good key. There's also a "user_registered" date/time column in wp_users so you could just look for users who registered since your last update/change to the local access table.
I'm not familiar with Access beyond a cursory understanding of it as a data source and some minor development functions, so there may be a much easier way to do it, but this is how I'd do it in any system that needed the user information from Wordpress.
Because Wordpress and Ms-Access live in very different environments, a trick is needed to "marry" the two. Another way we can use:
Use IIS as a webserver, so as not to collide with the port used by wordpress, so don't use port 80. Just use any port.
Use ASP to access Access Database (of course there is a block of ASP code to activate the connector to the Access file, then create a recordset via that connector for record2 and display it to the browser). Call it with the file name: recordshower.asp
The recordshower.asp file must be able to be called by the browser.
After that, go back to a page in wordpress, insert <iframe src=recordshower.asp width:.... ></iframe>
So, a wordpress page can display the contents of an Access table, with the help of ASP
I export the WordPress entries to a .CSV, I then run an Excel macro, which is stored in my personal workbook, to open the file from my downloads directory, convert the .CSV to .XLS, and write it to an XLS file in a known location. I then push a button in my MS Access program to read the entries from the .XLS file (which is externally linked to my MS Access as a Excel spreadsheet) and update my MS Access tables with the data.

AWS Elastic Beanstalk Asp.Net : Cannot view image under my domain after uploading

I have installed AWS SDK for .NET, and by using the toolkit for VS2013 I managed to deploy my application with no problem. The ElasticBeanstalk creates the bucket automatically and names it like elasticbeanstalk-eu-west-1-416461029999
The application has a file uploader which saves the user selected file under the bucket above. My problem is I can view the image by the AWS Explorer, but I would like to view the file by a browser under the domain like www.mydomain.com/Images/filename.jpg
The documentation for static sites says the bucket has to have the same name as the domain name, but the Elastic Beanstalk names the bucket automatically and it is not possible to change it after...
I would really appreciate any help, thanks...
1) First of you have to set ACL permission (Public Read,Write) for particular file
2) you could not use to see image directly Bucket URL. AWS provide "Distribution URL" for file display or view. so you can view file using Distribution URL

Resources