Re: Autocomplete returning shingles

2018-05-04 Thread Alessandro Benedetti
Yes, faceting will work, you can use an old approach used for autocompletion[1] . Be sure you add the shingle filter to the appropriate index time analysis for the field you want. Facet values are extracted from the indexed terms, so calculating faceting and filtering by prefix should do the trick.

Re: Autocomplete returning shingles

2018-05-04 Thread O. Klein
Yes, splitting in more documents would probably work. Don't think I can do this easliy with Solr. Looking into using facets now. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Autocomplete returning shingles

2018-05-03 Thread Alessandro Benedetti
So, your problem is you want to return shingle suggestions from a field in input but apply multiple filter queries to the documents you want to fetch suggestions from. Are you building an auxiliary index for that ? You need to design it accordingly. If you want to to map each suggestion to a singl

Re: Autocomplete returning shingles

2018-05-03 Thread Federico Méndez
Can you just add the SingleFilter to your field? https://lucene.apache.org/solr/guide/6_6/filter-descriptions.html#FilterDescriptions-ShingleFilter On Wed, May 2, 2018 at 2:04 PM, O. Klein wrote: > I need to use autocomplete with edismax (ngrams,edgegrams) to return > shingled > sugges

Re: Autocomplete prototype using Velocity UI Browse - Solritas

2015-10-28 Thread Alessandro Benedetti
Erick, thank you very much ! Just used the example in files, and it's perfect for my need ! Cheers On 28 October 2015 at 16:43, Erik Hatcher wrote: > Ah… I did this once upon a time for techproducts, and put a branch of it > here, see the couple of commits from me there: > > https://github.

Re: Autocomplete prototype using Velocity UI Browse - Solritas

2015-10-28 Thread Erik Hatcher
Ah… I did this once upon a time for techproducts, and put a branch of it here, see the couple of commits from me there: https://github.com/erikhatcher/lucene-solr/commits/instant_search But, even better is to look at Solr’s

Re: Autocomplete prototype using Velocity UI Browse - Solritas

2015-10-28 Thread Alessandro Benedetti
I am using 5.3 . I was taking a look to the vm templates and Js scripts. My collection is a custom collection, and it is working ok. The browse interface is slightly customise and it is working properly. Everytime I click submit query , the proper results are returned. What i would like to do i

Re: Autocomplete prototype using Velocity UI Browse - Solritas

2015-10-28 Thread Erik Hatcher
What version of Solr? Solr 5’s data driven configuration is set up to use a generic browse interface that does not have any auto-suggest wired in by default. How did you create your collection? You just want to turn off the terms suggest thing? — Erik Hatcher, Senior Solutions Architect htt

Re: AutoComplete Feature in Solr

2015-10-15 Thread Alessandro Benedetti
I would suggest you to read this in details : *DocumentDictionaryFactory* > A dictionary with terms, weights, and an optional payload taken from the > index. > This dictionary implementation takes the following parameters in addition > to parameters described for the Suggester generally and for th

Re: AutoComplete Feature in Solr

2015-10-14 Thread Salman Ansari
Actually what you mentioned Alessandro is something interesting for me. I am looking to boost the ranking of some suggestions based on some dynamic criteria (let's say how frequent they are used). Do I need to update the boost field each time I request the suggestion (to capture the frequency)? If

Re: AutoComplete Feature in Solr

2015-10-14 Thread Alessandro Benedetti
using the suggester feature you can in some case rank the suggestions based on an additional numeric field. It's not your use case, you actually want to use a search handler with a well defined schema that will allow you for example to query on an edge ngram token filtered field, applying a geo dis

Re: AutoComplete Feature in Solr

2015-10-13 Thread William Bell
We want to use suggester but also want to show those results closest to my lat,long... Kinda combine suggester and bq=geodist() On Mon, Oct 12, 2015 at 2:24 PM, Salman Ansari wrote: > Hi, > > I have been trying to get the autocomplete feature in Solr working with no > luck up to now. First I rea

Re: AutoComplete Feature in Solr

2015-10-13 Thread Salman Ansari
Thanks guys, I was able to make it work using your articles. The key point was mentioned in one of the articles which was that suggestion component is preconfigured in techproducts sample. I started my work from there and tweaked it to suit my needs. Thanks a lot! One thing still remaining, I don'

Re: AutoComplete Feature in Solr

2015-10-13 Thread Alessandro Benedetti
As Erick suggested you are reading a really old way to provide the autocomplete feature ! Please take a read to the docs Erick linked and to my blog as well. It will definitely give you more insight about the Autocomplete world ! Cheers [1] http://alexbenedetti.blogspot.co.uk/2015/07/solr-you-com

Re: AutoComplete Feature in Solr

2015-10-12 Thread Erick Erickson
Some of the links you're looking at are quite old, and a lot has changed, assuming you're on a recent Solr version. It's usually best to look at the Solr reference guide, see: https://cwiki.apache.org/confluence/display/solr/Suggester This might also help: http://lucidworks.com/blog/2015/03/04/sol

Re: Autocomplete with Case-insensitive feature

2014-05-14 Thread Sunayana
What worked for me was tweaking a code from velocity file, head.vm, I changed 'terms.prefix': function() { return $("#q").val().toLowerCase();}, which solved my issue as I am using terms component for suggestions. Dmitry Kan-2 wrote > what kind of suggester are you using? Does its index get rebuil

Re: Autocomplete with Case-insensitive feature

2014-04-22 Thread Dmitry Kan
what kind of suggester are you using? Does its index get rebuilt when you reindex your data? >From the analysis page at least I see, that you get a hit on Game, which is lowercased to game. On Thu, Apr 17, 2014 at 10:55 AM, Sunayana wrote: > 1.My field definition: >positionIncrementGap="100

Re: Autocomplete with Case-insensitive feature

2014-04-17 Thread Sunayana
1.My field definition: 2.On analysis page, it shows me the lowercased word,for both index

Re: Autocomplete with Case-insensitive feature

2014-04-16 Thread Dmitry Kan
Could you show the updated field definition? Does analysis page show sensible output for your query on indexing/querying sides? On Wed, Apr 16, 2014 at 5:52 PM, Sunayana wrote: > Thanks for replying, > 1.Yes,I re-indexed data after the changes. > 2.Changing to STF, did not help.. > > > > > -- >

Re: Autocomplete with Case-insensitive feature

2014-04-16 Thread Sunayana
Thanks for replying, 1.Yes,I re-indexed data after the changes. 2.Changing to STF, did not help.. -- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-with-Case-insensitive-feature-tp4131182p4131499.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Autocomplete with Case-insensitive feature

2014-04-16 Thread Dmitry Kan
1. did you re-index after changing schema? 2. Why do use KeywordTokenizerFactory and not StandardTokenizerFactory? KTF treats entire field contents as one token. Does it do what you really want? [1] 3. If you'd use STF, TrimFilterFactory would be obsolete, as tokenization has been done already. [

Re: Autocomplete with Case-insensitive feature

2014-04-15 Thread Sunayana
Hi, Did u mean changing field type as

Re: Autocomplete with Case-insensitive feature

2014-04-15 Thread Dmitry Kan
Hi, Configure LowerCaseFilterFactory into the "query" side of your type config. Dmitry On Tue, Apr 15, 2014 at 10:50 AM, Sunayana wrote: > Hi All, > > I have been trying out this autocomplete feature in Solr4.7.1 using > Suggester.I have configured it to display phrase suggestions also.Proble

Re: autocomplete feature - where to begin

2013-08-14 Thread Mysurf Mail
Thanks. Will read it now :-) On Tue, Aug 13, 2013 at 8:33 PM, Cassandra Targett wrote: > The autocomplete feature in Solr is built on the spell checker > component, and is called Suggester, which is why you've seen both of > those mentioned. It's implemented with a searchComponent and a > reques

Re: autocomplete feature - where to begin

2013-08-13 Thread Cassandra Targett
The autocomplete feature in Solr is built on the spell checker component, and is called Suggester, which is why you've seen both of those mentioned. It's implemented with a searchComponent and a requestHandler. The Solr Reference Guide has a decent overview of how to implement it and I just made a

Re: AutoComplete with FiterQuery for Full content

2013-01-21 Thread Sujatha Arun
Hi Jack, I need to filter the suggestions based on some other fields and the below mentioned method [Suggester] does not allow to do same. Hence at present we have only two options for suggest Implementation with filters 1.Facets 2.N-Grams as mentioned in this site . http://www.searchworkings

Re: AutoComplete with FiterQuery for Full content

2013-01-21 Thread Jack Krupansky
It's not clear what your question or problem is. Try explaining it in simple English first. Autocomplete is fairly simple - no need for the complexity of an ngram filter. Here's an example of a suggester component and request handler based on a simple text field: suggest org.apache.

Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-28 Thread Rajani Maski
Hi, One approach for this can be to get fact.prefix results for prefix based suggests and for suggesting names from middle of doc what you can do is index that name field with white space and edge ngram filter; search on that field with prefix key word and fl=title only.. Then concatenate both

Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Chantal Ackermann
> Suppose I have a product with a title='kMix Espresso maker'. If I tokenize > this and put the result in product_tokens I should get > '[kMix][Espresso][maker]'. > > If now I try to search with facet.field='product_tokens' and > facet.prefix='espresso' I should get only 'espresso' while I want '

Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Ugo Matrangolo
Hi, thank you for the suggestions. However, I think that this is not going to work. Suppose I have a product with a title='kMix Espresso maker'. If I tokenize this and put the result in product_tokens I should get '[kMix][Espresso][maker]'. If now I try to search with facet.field='product_tokens

Re: Autocomplete terms from the middle of name/description of a Doc

2012-07-25 Thread Chantal Ackermann
Hi Ugo, You can use facet.prefix on a tokenized field instead of a String field. Example: facet.prefix on "product" will only return hits that match the start of the single token stored in that field. As "product_tokens" contains the value of "product" tokenized in a fashion that suites you,

Re: Autocomplete using facets

2012-06-28 Thread David Smiley (@MITRE.org)
Ugo, I suggest simply manually filtering out "red" from the facet.prefix results you get back. Not ideal, but it's easy and your problem seems like an infrequent event and a minor nuisance. ~ David Smiley p.s. thanks for buying my book - Author: http://www.packtpub.com/apache-solr-3-enterpri

Re: Autocomplete using facets

2012-06-26 Thread Ugo Matrangolo
Hi Dmitry, I have tried like you say but this will filter out any possible 'continuation' of the search query. Let's make an example. Let's suppose we are looking for 'red rachel zoe'. The user will type something like: "red r" Given that we have an autocomplete_facet facet where we copy name,

Re: Autocomplete using facets

2012-06-26 Thread Dmitry Kan
Hi, Could you preserve in the facet.prefix what the user has typed so far? Or is this breaking your requirement? /Dmitry On Tue, Jun 26, 2012 at 5:08 PM, Ugo Matrangolo wrote: > Hi, > > We are using SOLR to build a simple search engine on our e-commerce site. > We also implemented an autocomple

Re: Autocomplete(terms) performance problem

2011-11-24 Thread roySolr
Thanks, it looks great! In the nearby future i will give it a try. -- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-terms-performance-problem-tp3351352p3533066.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Autocomplete(terms) performance problem

2011-11-23 Thread solr-ra
I have now enabled the infix search. So you will be able to do both edge as well as infix search. Type "francisco peak" in the edge field, and in the below infix input field, try, "cisco peak", both will get you to the same selections. Please give it a try now: http://solr-ra.tgels.org/solr-ra-au

Re: Autocomplete(terms) performance problem

2011-11-23 Thread roySolr
Thanks for your answer Nagendra, The problem is i want to do some infix searches. When i search for "sisco" i want the autocomplete with "san fran*sisco*". In the example you gave me it's also not possible. Roy -- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-ter

Re: Autocomplete(terms) performance problem

2011-11-22 Thread solr-ra
You should try out the autocomplete component using Solr with RankingAlgorithm. The performance is less than 3ms for a 1 million Wikipedia titles index with very low deviation. You can get more information about the performance with different indexes of size 3k, 390k, 1m, 10m docs from here: http

Re: autocomplete with popularity

2011-09-22 Thread Otis Gospodnetic
Eugeny, I think you want something more useful and less problematic as Wunder already pointed out. Wouldn't you want your suggestions to be ordered by how close of match they are?  And do you really want them to be purely prefix-based like in your example? What if people are searching for Mic

Re: autocomplete with popularity

2011-09-20 Thread Markus Jelsma
> The original request was for suggestions ranked purely by request count. > You have designed something more complicated that probably works better. > > When I built query completion at Netflix, I used the movie rental rates to > rank suggestions. That was simple and very effective. We didn't ne

Re: autocomplete with popularity

2011-09-20 Thread Walter Underwood
The original request was for suggestions ranked purely by request count. You have designed something more complicated that probably works better. When I built query completion at Netflix, I used the movie rental rates to rank suggestions. That was simple and very effective. We didn't need a more

Re: autocomplete with popularity

2011-09-20 Thread Markus Jelsma
> Of course you can fight spam. And the spammers can fight back. I prefer > algorithms that don't require an arms race with spammers. > > There are other problems with using query frequency. What about all the > legitimate users that type "google" or "facebook" into the query box > instead of int

Re: autocomplete with popularity

2011-09-20 Thread Walter Underwood
Of course you can fight spam. And the spammers can fight back. I prefer algorithms that don't require an arms race with spammers. There are other problems with using query frequency. What about all the legitimate users that type "google" or "facebook" into the query box instead of into the loca

Re: autocomplete with popularity

2011-09-20 Thread Markus Jelsma
A query log parser can be written to detect spam. At first you can use cookies (e.g. sessions) and IP-addresses to detect term spam. You can also limit a popularity spike to a reasonable mean size over a longer period. And you can limit rates using logarithms. There are many ways to deal with s

Re: autocomplete with popularity

2011-09-20 Thread Walter Underwood
Ranking suggestions based on query count would be trivially easy to spam. Have a bot make my preferred queries over and over again, and "boom" they are the most-preferred. wunder On Sep 20, 2011, at 3:41 PM, Markus Jelsma wrote: > At least, i assumed this is what the user asked for when i read

Re: autocomplete with popularity

2011-09-20 Thread Markus Jelsma
At least, i assumed this is what the user asked for when i read "which counts requests and sorts suggestions according to this count" > No. The spellchecker and suggester only operate on the index (tf*idf) and > do not account for user generated input which is what the user asks for. > > You nee

Re: autocomplete with popularity

2011-09-20 Thread Markus Jelsma
No. The spellchecker and suggester only operate on the index (tf*idf) and do not account for user generated input which is what the user asks for. You need to parse the query logs periodically index query strings and #occurences in the query logs as a float value (or use ExternalFileField) to o

Re: autocomplete with popularity

2011-09-20 Thread O. Klein
>From http://wiki.apache.org/solr/Suggester : spellcheck.onlyMorePopular=true - if this parameter is set to true then the suggestions will be sorted by weight ("popularity") - the count parameter will effectively limit this to a top-N list of best suggestions. If this is set to false then suggesti

Re: Autocomplete(terms) performance problem

2011-09-20 Thread roySolr
thanks Klein, If I understand correctly there is for now no solution for this problem. The best solution for me is to limit the count of suggestions. I still want to use the regex and with 100.000 docs it looks like it's no problem. -- View this message in context: http://lucene.472066.n3.nabb

Re: Autocomplete(terms) performance problem

2011-09-20 Thread O. Klein
This issue has been discussed in http://lucene.472066.n3.nabble.com/Terms-regex-performance-issue-td3268994.html#a3338899 -- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-terms-performance-problem-tp3351352p3351499.html Sent from the Solr - User mailing list arch

Re: Autocomplete

2011-09-01 Thread Brian Lamb
I found that if I change to I can do autocomplete in the middle of a term. Thanks! Brian Lamb On Thu, Sep 1, 2011 at 11:27 AM, Brian Lamb wrote: > Hi all, > > I've read numerous guides on how to set up autocomplete on solr and it > works great the way I have it now. However, my only compl

Re: Autocomplete with Solr 3.1

2011-07-30 Thread O. Klein
According to http://www.lucidimagination.com/blog/2011/04/08/solr-powered-isfdb-part-9/ it should be possible to set spellcheck.maxCollations to 5. This doesn't work for me in 4.0, nor does it work with the regular spellchecker, unless I set spellcheck.maxCollationTries to a value like 10. Then I

Re: Autocomplete with Solr 3.1

2011-07-28 Thread scorpking
Nobody can help me -- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-with-Solr-3-1-tp3202214p3206095.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Autocomplete with Solr 3.1

2011-07-27 Thread scorpking
Hi Klein, Thanks for your reply. But i tried some suggestion with solr, and results return is good. But i want to using search component with solr 3.1. Now i have had some problems with Suggester. i think my problem perhaps about in schema file. This is schema file:

Re: Autocomplete with Solr 3.1

2011-07-27 Thread O. Klein
I know the solution, just not how to actually implement it, but maybe somebody can help with that :) >From Wiki: If you want to use a dictionary file that contains phrases (actually, strings that can be split into multiple tokens by the default QueryConverter) then define a different QueryConvert

Re: Autocomplete(terms) middle of words

2011-05-01 Thread ramires
I've already use nutch trunk 4.0. I have problem with space. -- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-terms-middle-of-words-tp2878694p2888940.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Autocomplete(terms) middle of words

2011-04-29 Thread Grijesh
solr-1.4 version does not support terms.regex .So you need to upgrade your version to solr-3.1. -Thanx: Grijesh www.gettinhahead.co.in -- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-terms-middle-of-words-tp2878694p2880040.html Sent from the Solr - User mail

Re: Autocomplete(terms) middle of words

2011-04-29 Thread ramires
hi I tried before both %20 and " " terms it didn`t work. Also regex=(.*)(book) delete spaces and merge results like thebook asbook atbook songbook yearbook-- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-terms-middle-of-words-tp2878694p2879375.html Sent from

Re: Autocomplete(terms) middle of words

2011-04-29 Thread Quentin Proust
@roySolr : terms.regex exits from Solr 3.1. Doesn't seem compatible. @ramires : Did you try with space in your regex. Something like terms.regex=(.*) book (.*) <-- I put space before and after book. If it doesn't work, try to replace space with %20. I didn't try so I don't know if it work. 2011/4

Re: Autocomplete(terms) middle of words

2011-04-29 Thread ramires
hi I have question about regex terms. I try to find terms before and after word'ing but can't sand blank char. how can I send through ?? terms?terms=true&terms.fl=content&terms.regex=(.*)( book)&terms.regex.flag=case_insensitive&terms.limit=50-- View this message in context: http://lucene.47206

Re: Autocomplete(terms) middle of words

2011-04-29 Thread roySolr
terms.regex doesn´t work for me. Prefix works fine. I use SOLR 1.4.. Is it compatible?-- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-terms-middle-of-words-tp2878694p2878948.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Autocomplete(terms) middle of words

2011-04-29 Thread roySolr
The words are now splitted in the index(nGram). It looks like this: m ma man manc manch manche manches manchest mancheste manchester The termsComponent does not see it as one word(manchester). It gives me the results back in NGrams(m,ma,man etc)-- View this message in context: http://lucene.

Re: Autocomplete(terms) middle of words

2011-04-29 Thread Quentin Proust
You can do it without NGram with a query like this : http://localhost:8983/solr/terms?terms=true&terms.fl=suggestionField&terms.regex=(.*)chest(.*)&terms.regex.flag=case_insensitive In my case, I had to encode (.*) so replace it with %28.*%29 if needed. It use a regex. I don't know if it has an im

Re: Autocomplete(terms) middle of words

2011-04-29 Thread Grijesh
Hello , If you are using NGram then do not use TermsComponent, Query normally like http://localhost:8983/solr/select?q=suggestionField:chest It will give you the desired suggestions -Thanx: Grijesh www.gettinhahead.co.in -- View this message in context: http://lucene.472066.n3.nabble.com/Au

Re: Autocomplete(terms) middle of words

2011-04-29 Thread lboutros
you could use EdgeNGramFilterFactory : http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.EdgeNGramFilterFactory And you should mix front and back ngram process in your analyzer : is it better ? Ludovic. -Jouve France.-- View this message in context: http://lucene.472066.n

Re: Autocomplete(terms) middle of words

2011-04-29 Thread roySolr
Ok, i try NGrams. My configuration looks like this: i try to run the query: http:/

Re: Autocomplete(terms) middle of words

2011-04-29 Thread Grijesh
NGram will work for you if you want to search in middle of the word .You can also look for wildcard search for that. NGram will increase the size of index while wildcard queries are slow. -Thanx: Grijesh www.gettinhahead.co.in -- View this message in context: http://lucene.472066.n3.nabble

RE: Autocomplete: match words anywhere in the token

2010-09-24 Thread Jonathan Rochkind
antal seemed to confirm that when I asked. From: Peter Karich [peat...@yahoo.de] Sent: Friday, September 24, 2010 8:18 AM To: solr-user@lucene.apache.org Subject: Re: Autocomplete: match words anywhere in the token Jonathan, this field described here fro

RE: Autocomplete: match words anywhere in the token

2010-09-24 Thread Jonathan Rochkind
Chantal Ackermann wrote: "I definitely need to have a look at how to use facetting in combination with multivalued fields for autocomplete." My one kind of crazy idea is to (ab)use the Hilighting Component. If you make a query for auto-suggest terms based on facets, using Chantal's technique, b

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Arunkumar Ayyavu
I realize that Solr has facet.mincount and I believe I could use that. Sorry for writing too many mails without much study. On Fri, Sep 24, 2010 at 5:57 PM, Arunkumar Ayyavu < arunkumar.ayy...@gmail.com> wrote: > > > On Fri, Sep 24, 2010 at 5:22 PM, Arunkumar Ayyavu < > arunkumar.ayy...@gmail.co

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Arunkumar Ayyavu
On Fri, Sep 24, 2010 at 5:22 PM, Arunkumar Ayyavu < arunkumar.ayy...@gmail.com> wrote: > Thanks. That was cool. > > Now, I'm looking into another problem. Say, I search for sony, I don't want > to see all that starts with sony. Only when I type more text, say sony slr, > I want to see those entrie

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Peter Karich
Jonathan, this field described here from Chantal: > 2.) create an additional field that stores uses the > String type with the same content (use copy field to fill either) can be multivalued. Or what did you mean? BTW: The nice thing about facet.prefix is that you can add an arbitrary (filter)

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Arunkumar Ayyavu
On Thu, Sep 23, 2010 at 1:57 PM, Chantal Ackermann < chantal.ackerm...@btelligent.de> wrote: > On Wed, 2010-09-22 at 20:14 +0200, Arunkumar Ayyavu wrote: > > Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get > > the following results when I search for "canon pixma". > > Can

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Arunkumar Ayyavu
Thanks. That was cool. Now, I'm looking into another problem. Say, I search for sony, I don't want to see all that starts with sony. Only when I type more text, say sony slr, I want to see those entries starting with sony slr. Let me see if I can find the answer soon. On Thu, Sep 23, 2010 at 1:50

Re: Autocomplete: match words anywhere in the token

2010-09-24 Thread Chantal Ackermann
Hi Jonathan, yes it works only for single-valued fields without great effort. For multivalued fields you'd have to do some extra work getting only the values wich contain tokens that start with the given prefix. But maybe you mean also wether it works for several fields in one query. I guess not,

Re: Autocomplete: match words anywhere in the token

2010-09-23 Thread Jonathan Rochkind
This works with _one_ entry per document, right? If you've actually found a clever trick to use this technique when you have more than one entry for auto-suggest per document, do let me know. Cause I haven't been able to come with one. Jonathan Chantal Ackermann wrote: What works very goo

Re: Autocomplete: match words anywhere in the token

2010-09-23 Thread Jan Høydahl / Cominvent
Make sure you're using AND as default operator... -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 22. sep. 2010, at 20.14, Arunkumar Ayyavu wrote: > Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get > the following results when I search for "

Re: Autocomplete: match words anywhere in the token

2010-09-23 Thread Chantal Ackermann
On Wed, 2010-09-22 at 20:14 +0200, Arunkumar Ayyavu wrote: > Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get > the following results when I search for "canon pixma". > Canon PIXMA MP500 All-In-One Photo Printer > Canon PowerShot SD500 > > As you can guess, I'm not expecti

Re: Autocomplete: match words anywhere in the token

2010-09-23 Thread Chantal Ackermann
What works very good for me: 1.) Keep the tokenized field (KeywordTokenizerFilter, WordDelimiterFilter) (like you described you had) 2.) create an additional field that stores uses the String type with the same content (use copy field to fill either) 3.) use facet.prefix instead of terms.prefix fo

Re: Autocomplete: match words anywhere in the token

2010-09-22 Thread Arunkumar Ayyavu
Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get the following results when I search for "canon pixma". Canon PIXMA MP500 All-In-One Photo Printer Canon PowerShot SD500 As you can guess, I'm not expecting the 2nd result entry. Though I understand why I'm getting the 2nd en

Re: Autocomplete: match words anywhere in the token

2010-09-22 Thread Jason Rutherglen
This may be what you're looking for. http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/ On Wed, Sep 22, 2010 at 4:41 AM, Arunkumar Ayyavu wrote: > It's been over a week since I started learning Solr. Now, I'm using the > electronics store example t

Re: Autocomplete: match words anywhere in the token

2010-09-22 Thread Jan Høydahl / Cominvent
Hmm, the terms component can only give you terms, so I don't think you can use that method. Try to go for creating a new Solr Core for your usecase. A bit more work but much more flexible. See http://search-lucene.com/m/Zfxp52FX49G1 -- Jan Høydahl, search solution architect Cominvent AS - www.c

Re: Autocomplete with Filter Query

2010-09-11 Thread Ingo Renner
Am 10.09.2010 um 17:14 schrieb David Yang: Hi David, > Is there any way to provide autocomplete while filtering results? yes, you can use facets to achieve that. best Ingo -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2, Admin Google Summer of Code TYPO3 - Open Source Enterp

Re: Autocomplete with Filter Query

2010-09-10 Thread Peter Karich
no exact ngram match, but some > relevant ngrams? E.g. user types "dog wam" and it finds no ngrams with > "dog wam" but there are ngrams for "dog wal" (for dog walking) - this is > probably not too relevant though since mostly prefix suggestion should &g

RE: Autocomplete with Filter Query

2010-09-10 Thread David Yang
are ngrams for "dog wal" (for dog walking) - this is probably not too relevant though since mostly prefix suggestion should be enough. -Original Message- From: Jonathan Rochkind [mailto:rochk...@jhu.edu] Sent: Friday, September 10, 2010 11:41 AM To: solr-user@lucene.apache.

RE: Autocomplete with Filter Query

2010-09-10 Thread Jonathan Rochkind
I've been thinking about this too, and haven't come up with any GREAT way. But there are several possible ways, that will do different things, good or bad, depending on the nature of your data and exactly what you want to do. So here are some ideas I've been thinking about, but not a ready made

Re: Autocomplete and Sorting on multiple multi-value/single-value fields

2010-08-22 Thread Erick Erickson
Hmmm, is it then really acceptable for the document display to look like title crew cast cvalue mcast value ? Presuming that each document has a title, I know of no built-in way to say "only sort on the title if there was a title match

Re: Autocomplete and Sorting on multiple multi-value/single-value fields

2010-08-22 Thread Erick Erickson
Could you fill us in a little more on the behavior you're after? Because I'm having trouble understanding what "sort across title and multi-valued fields" means... If every document has a title, and title is unique, then there's no need to sort by anything else. Sub-sorts only make sense if you ha

Re: Autocomplete and Sorting on multiple multi-value/single-value fields

2010-08-22 Thread Neil Lott
Hi Eric, I think this query explains what I'm trying to do to an extent minus the sorting: > http://localhost:8983/solr/core/select/?q=(titleac:dr or castac:dr or > crewac:dr)&version=2.2&start=0&rows=100&indent=on&fl=title,cast,crew If I get a match in the title field or the cast field

Re: autocomplete: case-insensitive and middle word

2010-08-18 Thread Paul
Here's my solution. I'm posting it in case it is radically wrong; I hope someone can help straighten me out. It seems to work fine, and seems fast enough. In schema.xml:

Re: autocomplete: case-insensitive and middle word

2010-08-17 Thread Avlesh Singh
This thread might help - http://www.lucidimagination.com/search/document/9edc01a90a195336/enhancing_auto_complete Cheers Avlesh @avlesh | http://webklipper.com On Tue, Aug 17, 2010 at 8:30 PM, Paul wrote: > I have a couple questions about implementing an autocomplete

Re: Autocomplete with NGrams

2010-07-20 Thread MitchK
It sounds like the best solution here, right. However, I do not want to exclude the possibility of doing things one *should* do in different cores with different configurations and schema.xml in one core. I haven't completly read the lucidimagination article, but I would suggest you to do your wo

Re: Autocomplete with NGrams

2010-07-19 Thread Frank A
Just to confirm - does multicore sound like the right solution here? Is it not possible to "serve" both use cases from one core? Thanks. On Mon, Jul 19, 2010 at 5:12 PM, MitchK wrote: > > Frank, > > have a look at Solr's example-directory's and look for 'multicore'. There > you can see an exampl

Re: Autocomplete with NGrams

2010-07-19 Thread MitchK
Frank, have a look at Solr's example-directory's and look for 'multicore'. There you can see an example-configuration for a multicore-environment. Kind regards, - Mitch -- View this message in context: http://lucene.472066.n3.nabble.com/Autocomplete-with-NGrams-tp979312p979610.html Sent from

RE: autocomplete

2009-11-01 Thread Ankit Bhatnagar
Hey Avlesh, Thanks for your reply. -Ankit -Original Message- From: Avlesh Singh [mailto:avl...@gmail.com] Sent: Saturday, October 31, 2009 10:08 PM To: solr-user@lucene.apache.org Subject: Re: autocomplete > > > "q=*:*&fq=ac:*all*&wt=json&rows=15&sta

Re: autocomplete

2009-10-31 Thread Avlesh Singh
> > > "q=*:*&fq=ac:*all*&wt=json&rows=15&start=0&indent=on&omitHeader=true&json.wrf=?"; > Why is the json.wrf not specified? Without the callback function, the string that is return back is illegal javascript for the browser. You need to specify this parameter which is a wrapper or a callback funct