Re: solr extends query

2016-07-26 Thread Erik Hatcher
Ah, I see - thanks for explaining that you’re not operating on tokens like that. Given that, I think the best place to implement this is as a QParserPlugin - that gives you the query string and allows you to return a standard Lucene Query. Erik > On Jul 25, 2016, at 9:44 AM, sara ha

Re: solr extends query

2016-07-25 Thread sara hajili
i saw synonym Filter but it is not sufficient for me.as i saw this, i must build synonym filter map . that this is built like a map i mean i must put exactly in synonym map for example "home" is synonym of "house" (for example). so in query when user insert home it filter add house to it and expand

Re: solr extends query

2016-07-25 Thread Erik Hatcher
You’re going to need to tokenize to look up words, so a TokenFilter is a better place to put this sort of thing, I think. Build off of Lucene’s SynonymFilter (and corresponding SynonymFilterFactory) https://github.com/apache/lucene-solr/blob/5e5fd662575105de88d8514b426bccdcb4c76948/lucene/analys

Re: solr extends query

2016-07-24 Thread sara hajili
i use solr 6-1-0. and i write my own search Handler .i got this error: java.lang.IllegalAccessError: tried to access field org.apache.solr.handler.component.ResponseBuilder.requestInfo from class org.apache.solr.handler.component.MyResponseBuilder at org.apache.solr.handler.component.MyRe

Re: solr extends query

2016-07-24 Thread Erik Hatcher
Have a look at Solr's source code and you will see many TokenFilter implementations. The synonym token filter is the closest to what you want. But maybe first - please detail (copy/paste) the exact error you were getting in your handler. It's still not my recommended approach but it sounds l

Re: solr extends query

2016-07-24 Thread sara hajili
How i can implement this as q token filter.? I wanna to expand query with wordnet. So i try to implement my search handler. In this way i got solrparam. Q And send it to wordnet and expand this. I write this to mysearch handler. So when user insert a query like q=tree and apple. I expand this query

Re: solr extends query

2016-07-24 Thread Erik Hatcher
My first inclination would be to implement this as a TokenFilter instead. Can you provide some examples of what you want? > On Jul 24, 2016, at 08:22, sara hajili wrote: > > hi all. > i wanna to expand my queries with wordnet ... > so i try to write my own SearchHandler class."/mysearchHandle

solr extends query

2016-07-24 Thread sara hajili
hi all. i wanna to expand my queries with wordnet ... so i try to write my own SearchHandler class."/mysearchHandler" so i add new requestHandler in solr-config /mySearchHandler but i faced with problem. i found some field that they were package access . so i get access error in run query.(this fi