Hello!

Look at the dismax (http://wiki.apache.org/solr/DisMaxQParserPlugin)
query parser and the qf parameter. With dismax (or edismax) you can
make a query like:
q=user query&qf=name keywords description username

and Solr will make the query to all the fields specified by the qf
parameter. 

-- 
Regards,
 Rafał Kuć

> Thank you for your reply. I think that's probably the problem then. Is there
> any way I can do this:
> I have a list of programs. Each program has a name, keywords, description
> and username. When I perform a search, I need to search all of those fields
> at once. This is why I used a copyfield to copy everything to a "text"
> field. Now there is an additional requirement: partial text searches, but
> only for the name field. Is there any way this can be done? I use solrJ for
> my queries, as follows:

> SolrQuery query = new SolrQuery(keyword);
> QueryResponse response = solrServer.query(query);
> SolrDocumentList documents = response.getResults();

> Thanks

> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/EdgeNGramTokenizer-not-working-tp3675926p3675966.html
> Sent from the Solr - User mailing list archive at Nabble.com.



Reply via email to