I'm using Solr/Lucene as search engine for my application. I require that some results (known as best bets) show every time the user asks for certain queries. Does anyone knows how to configure this in Solr/Lucene?
Thanks.
Take a look at the QueryElevationComponent.
Related
am working on a project and don't have experience with developing applications, I want like the BEST and EASY way to build cloud based SaaS product.
Can anyone tell which tech stack I should use, which backend lang/framework, db, which cloud company etc? I know only php in backend as of now but am thinking to first learn js and then nodeJS and then use it for backend and for db am thinking to use mysql.
There's something which might affect your answer, am actually not expecting much traffic on it not even in future. Please tell considering both the scenarios, application with very low traffic expectation and application with high traffic.
I would say the best way is to sit down and write out exactly what product you want to build - what's it's audience, it's purpose, what are your requirements around security, availability, etc, what kind of information is it going to process, how is this information gathered and retrieved - and then look at what skills you have access to, or could acquire easily. That will determine what technology stack would work for you. I'm sure folks on Slack will be happy to help with that once it's clearer what you're trying to achieve.
If you don't want to put details of your product design on Stack, get advice from someone offline.
In terms of cloud hosting, for a small-scale project they're probably all going to be just fine, but the technology stack you choose would help determine which might work best.
I am new to redis and would like to store the web analytic of web site globally and per user activity .
Below is what i am stuck with.
// to get all unique ips
client.sadd('visitors',ip);
// to records hits per ip
client.hincrby('hits',ip,1);
The above so far works fine and i do get number of different ips and hit counter per ip.
the problem comes to store the activities made by each ip. i.e. Storing the link he clicked, searches he did, with datetime
Can some one please throw light on how to best manage it.
Thanks
the problem comes to store the activities made by each
You will need a separate structure for storing these.
The simplest rational structure is to have a "list of actions by session". Take a look at the sorted sets commands which provide a basic framework for creating a list of actions within a session.
This will get you something quickly. However, this is probably not what you really want. In fact redis is probably not useful for this at all.
If you want to re-trace an entire site visit you really want to connect to some sort of true analytics framework. There are dozens of website tracking tools that provide this type of functionality, so it's not really clear that building one is very efficient.
I am trying to create a complete session managment in nodejs for logins, chat sessions etc.
I googled a lot and every solution that i got was with some framework/module. I don't want to use any module/framework. I would rather like to build my own solution for this:
So this is the plan:
I will set a session cookie on the client machine (yet to figure out how)
For each cookie, i will be maintaining a unique id in the database instead of files as is the case with php (i am using mongodb)
When a user opens the application, a cookie will be set, a entry will be made in database and corresponding information from the db will be fetched.
I am yet to lay a concrete plan for this. I wanted to know whether doing it this way is a good idea? i read somewhere....'Real men don't use any framework. They make everything on their own' :P
Please correct me if i am on a wrong direction. M just starting with these things....
I'm not aware of any node.js frameworks that are closed-source. Just pick one that seems to do what you want to do, download it, and study the source code to see how the developer implemented it. Then come up with your (perceived) improvement on how they did it. You'll probably find that implementing session management involves a whole bunch of nitpicky details that were never obvious to you.
Ignore all the above advice if this is a school assignment where you're not allowed to look at related code. If that's the case, I pity you because you have an incompetent teacher.
I've done a basic search online and found that Drupal is able to do the job my client requests. It's basically a user login which takes them to a form which they can use to query a database and submit data etc.
My question is what are the most important things to think about if security is absolute number 1 priority for this system? Are there any particular modules in Drupal I should use, or a particular area I really need to look into?
Please check http://groups.drupal.org/node/20504 for details.
More to this these are the modules you can check out for security purpose.
http://drupalmodules.com/category/Security
I'm currently working on an online store and I'm curious if there are any "best practices" that I should consider to attain subsecond (or close to) search operations. I'm using Full Text Search in Sql Server 2008 which I'm sure I could optimize in various ways. Right now, searches within Management Studio alone are taking 2-3 seconds roughly. Furthermore, I'm curious if client or server-side caching of some sort could be utilized. The database for the catalog contains millions of records. Does anyone know how Amazon.com or Borders.com return search results so quickly? Are there any books or articles that discuss search optimization and architecture? This isn't to be confused with search-engine optimization. Right now, I don't care about how visible the site is to the public.
Those websites use full text search or IR libraries. Apache Lucene is an open source framework that perfectly meets your needs. These information retrieval or IR libraries use inverted-index to obtain better search performance trading the index creation time. Also look for using Facets and collaborative filtering (the suggestion list you see on amazon) using Taste.
www.acm.org/dl
&computer.org
& searchenginewatch
& microsoft/enterprisesearch whitepapers
& lucidimagination
& autonomy
& endeca
All of these resources publish consumable information that is both useful and not always too obscure nor facile.
You can get the task done with MSSQL 2008 but you need to spend more time than a question on stackO can get you. |imho|
Note: Its fine to explore the implementation issues before you architect, but its not always a good idea to bring those implementation details into the architecture.