Re: synonyms

2009-12-16 Thread Patrick Jungermann
Hello Peter, by using the existing SynonymFilterFactory, it is not possible to use a database instead of a text file. This file will be read at startup and the internal synonym catalogue (SynonymMap) will be created. You could create your own filter factory that could create the needed synonym ca

Re: Multi-Term Synonyms

2009-11-26 Thread Patrick Jungermann
Hi Brad, I was trying this, too, and there is a possibility how to get multi-term synonyms to work properly. I wrote my solution already on this list. My solution was as follows: [cite] after your hints that had partially confirmed my considerations, I had made some tests with the FieldQParser.

Re: Solrj Javabin and JSON

2009-10-25 Thread Patrick Jungermann
Hi Stefan, you don't need to convert the Java objects built from the result returned as Javabin. Instead of this, you could easily use the JSON return format by setting "wt=json". See also at [0] for more information about this. Patrick [0] http://wiki.apache.org/solr/SolJSON SGE0 schrieb: >

Re: multi-word synonyms and analysis.jsp vs real field analysis (query, index)

2009-10-20 Thread Patrick Jungermann
Thanks Hoss, after your hints that had partially confirmed my considerations, I had made some tests with the FieldQParser. At the beginning, I had have some problems, but finally, I was able to solve the problem of multi-word synonyms at query time in a way that is suitable for us - and possibly f

Re: multi-word synonyms and analysis.jsp vs real field analysis (query, index)

2009-10-09 Thread Patrick Jungermann
ery time. Patrick Koji Sekiguchi schrieb: > Hi Patrick, > > Why don't you define: > > foo bar, foo_bar (and expand="true") > > instead of: > > foo bar=>foo_bar > > in only indexing side? Doesn't it make a change for the better? >

query highlighting

2009-10-09 Thread Patrick Jungermann
Hi list, is there any possibility to get highlighting also for the query string? Example: Query: fooo bar Tokens after query analysis: foo[0,4], bar[5,8] Token "foo" matches a token of one of the queried fields. -> Query higlighting: "fooo" Thanks, Patrick

Re: multi-word synonyms and analysis.jsp vs real field analysis (query, index)

2009-10-09 Thread Patrick Jungermann
to add it to the query > chain only. Than your index still preserves the original data. > > Cheers, > Chantal > > Patrick Jungermann schrieb: >> Hi Koji, >> >> using phrase queries is no alternative for us, because all query parts >> has to be optional parts.

Re: multi-word synonyms and analysis.jsp vs real field analysis (query, index)

2009-10-09 Thread Patrick Jungermann
ng within /admin/analysis.jsp view. Patrick Koji Sekiguchi schrieb: > Patrick, > >> parsedQueryString was something similar to "field:foo field:bar". At >> index time, it works like expected. > > I guess because you are searching q=foo bar, this causes OR query

multi-word synonyms and analysis.jsp vs real field analysis (query, index)

2009-10-08 Thread Patrick Jungermann
Hi list, I worked on a field type and its analyzing chain, at which I want to use the SynonymFilter with entries similar to: foo bar=>foo_bar During the analysis phase, I used the /admin/analysis.jsp view to test the analyzing results produced by the created field type. The output shows that a q

Re: Problems with WordDelimiterFilterFactory

2009-10-08 Thread Patrick Jungermann
Hi Bern, the problem is the character sequence "--". A query is not allowed to have minus characters that consequent upon another one. Remove one minus character and the query will be parsed without problems. Because of this parsing problem, I'd recommend a query cleanup before the submit to the