hey i am using solr search in my mvc.net application. Now i am doing free search on it but i want this search on specific field.
i.e. - - - i have various field like name, age, email, interest, profile
as i enter some text in search(free search) field i want that it searched only email field on indexed xml. how can i achieve it using free search.
If you need to search documents by a specific field, you can use the "fieldName:value" query format. eg. name:Manish
Related
I'm obviously missing something really obvious. If I use the standard report I can analyse the data by gender very easily. If I download the data via the API I can't find a gender field at all. I have a LOT of tables, but no field named gender (or anything close) or a field that contains gender details.
What am I missing in my understanding?
I'm playing around with the Here.com autosuggest feature, and I'm trying to find a way to limit the results of a query to only cities. I only want it to return potential city, state/prov, country matches, and not addresses or specific places.
The use case here is to allow the user to start typing in their current city and have autosuggest fill out the rest. So in this case, I also can't send the query with a bounding parameter like at or in, since I want the search to allow for matches world wide.
Is this possible with the current implementation of autosuggest? Or is there another way to accomplish this?
Thanks!
The API itself doesn't allow you to limit based on city but you can select responses where localityType=city in your application.
I'm using Ransack for search filtering in my app and I have a request from the client. They have the ability to search Account via Account_number. An account_number looks like this in our database 123456 but to the users the account number looks like this 123-456. So when they search for the account number and add the dash the account is not found.
Is there a way to ignore Dashes in the search? Like, If a user puts a dash in the search, can I configure ransack to ignore that character?
My query is pension paid united nation when I do the full text search its giving top results which contains national word instead of nation word, but I want the result should contains all the words in the query, but don't want national instead of that wants nation word should present in the documents.
How to achieve this with SOLR?
I guess you have a stemmer filter (e.g. PorterStemFilterFactory or SnowballPorterFilterFactory) configured in the field type of the field you are querying.
Remove that or user another field. If you need the stemmed field for something else, you can add a new field and field type without stemmer and copy the content there using
<copyField source="..." dest="..."/>
I'm developing simple search engine.If I search some thing using my search engine it will produce the list of urls which are relating with that search query.
I want to represent the search result by giving small,relevant description under each resulting url.(eg:- if we search something on google,you can see they will provide small description with the each resulting link.)
Any idea..?
Thank in advance!
You need to store position of each word in a webpage while indexing.
your index should contain- word id , document id of the document containing this word, number of occurrence of the word in that document , all the positions where the word occurred.
For more info you can read the research paper by Google founders-
The Anatomy of a Large-Scale Hypertextual Web Search Engine
You can fetch the meta content of that page and display it as a small description . Google also does this.