How to set cursoring (for the purpose of pagination) with the search result which I obtained from lucene search. Is there any ways to do that in lucene?
Regards,
Jagadesh
While surfing, I found http://hrycan.com/2010/02/10/paginating-lucene-search-results/. Should do what you want.
There is a method specifically dedicated to pagination: IndexSearcher.searchAfter(). In most cases this should be the best option.
Related
I am trying to find the best solution to paginate with PouchDB-find plugin.
for now I am using the options: "limit" and "skip" to paginate my results but this solution is not recommended for large collections: https://docs.cloudant.com/cloudant_query.html#finding-documents-using-an-index and https://pouchdb.com/2014/04/14/pagination-strategies-with-pouchdb.html.
I know PouchDB-find is inspired by Cloudant which offers a "bookmark" option to help with pagination.
Any idea if "bookmark" is available on PouchDB-find or if it will be implemented soon ?
I'm developing a Lucene search for my Zend 1.12 site. I would like to combine fuzzy search and field boosting. I try syntax like
title:"query"^10~0.8 OR description:"query"~0.8
It seems not to change results. I've also tried to find hints on the Internet, nobody had similar problem. This is query for particular setting and field boosting cannot be set in advance.
The question is: does Lucene support such a combination of modifiers? Is this syntax correct?
I would like to use the full Lucene query syntax on an Orchard CMS based Website.
Currently, after enabling the indexing and search on Orchard, I can search on the website according to the fields I selected on the Orchard search administration page,
but I cannot perform one search on a particular field only (without changing the behavior on the entire search)
I cannot use fuzzy search...
From the logs, I can see that Orchard take care of that part (providing Lucene a good query syntax), but I would like to do it on my own.
For example, when searching "wel" on the website, Orchard will send to Lucene this query : title:wel* body:wel* (if I have the title and body fields activated on the search).
I did see some blogs that talk about coding some features to customize search, but I would like to be sure I'm not missing something before switching to developer mode :)
There are so many scenarios that can be done with search that there is no way to provide such coverage out of the box, which is why the API is very simple to use if you need custom searching capabilities.
You should copy-paste the controller from the search module and use the Parse() method of the ISearchBuilder with the escape parameter to false. This will parse a pure lucene query. You can also use the WithField("body", "value") to do simpler field search.
I don't believe anyone has released any modules that provide additional search functionality, because if you need it, it is so simple to develop ^_^ So yes, you will have to go dev mode to do custom field search
I am about to use Solr'd Dynamic Fields for the first time but my requirements state that those fields have to be facetable. I did quite a lot of googling and doc reading but I can't find a place that either confirms or denies the allegation :)
Does anyone here know?
Thanks in advance!
Andre
Yes, you can facet on dynamic fields just fine.
Drupal's core search module, only searches for keywords, e.g. "sandwich". Can I make it search with a substring e.g. "sandw" and return my sandwich-results?
Maybe there is a plugin that does that?
The most direct module for it is probably Fuzzy Search. I have not tried it. If you have more advanced search needs on a small to medium sized site, Search Lucene API is a fine solution. For a larger site, or truly advanced needs, Solr is the premiere solution.
Recently I made a patch for Drupal's core search module to provide it with partial search (aka n-gram searches) ability. This is tested against Drupal 6.15 & 6.16 releases. You might want to read about patching.
On the other hand you can make use of Apache Solr Search Integration, Search Lucene API modules or other 3rd-party search solutions which takes more time to implement.
PorterStemmer module has its own different story in which you might be interested, too.
Yes. Fuzzy Search (module) does it. https://drupal.org/project/fuzzysearch
Drupal Finder does it somehow, namely: it has an autosuggest feature, so if You start typich sand it should suggest You a node containing sandwich.